﻿/* =============================================
   Paul Hirsch Web Design — SHARED STYLESHEET
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --navy:       #0d2137;
  --navy-mid:   #153352;
  --blue:       #1a6fb5;
  --blue-light: #2a8fd4;
  --gold:       #e8a020;
  --gold-light: #f5c040;
  --white:      #ffffff;
  --off-white:  #f4f8fc;
  --gray-light: #e8eef4;
  --gray:       #8a9bb0;
  --text:       #1a2a3a;
  --text-light: #4a5f72;
  --transition: 0.25s ease;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13,33,55,0.12);
  --shadow-lg:  0 8px 40px rgba(13,33,55,0.18);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== HEADER / NAV ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,33,55,0.96);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(13,33,55,0.3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
  font-family: 'Georgia', serif;
  flex-shrink: 0;
}
.logo-sub {
  display: block;
  font-size: 0.65rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
#main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#main-nav a:hover,
#main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
#main-nav a.active { color: var(--gold-light); }
#main-nav .nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
#main-nav .nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a72 100%);
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(232,160,32,0.07);
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 12px auto 0;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--blue);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; color: var(--navy); }
.card p  { color: var(--text-light); font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 0.9rem;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 280px;
}
footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
footer ul li { margin-bottom: 10px; }
footer ul li a {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  transition: color var(--transition);
}
footer ul li a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.footer-contact .icon { color: var(--gold); font-size: 1rem; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover   { background: var(--gold-light); }

/* ===== FORM STYLES ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--navy); letter-spacing: 0.3px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,181,0.12);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #e05252; }
.form-error { font-size: 0.8rem; color: #e05252; min-height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success {
  background: #e6f7ee;
  color: #1a6b3a;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.97rem;
  margin-top: 10px;
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .hamburger { display: flex; }

  #main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    padding: 90px 24px 32px;
    gap: 8px;
    z-index: 999;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  }
  #main-nav.open { transform: translateY(0); }
  #main-nav a { font-size: 1.2rem; padding: 14px 30px; width: 260px; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

