/* =============================================
   CRANDALL & OSEEN PA — Stylesheet
   ============================================= */

:root {
  --navy:       #1e2d40;
  --navy-light: #2e4460;
  --gold:       #c9973a;
  --gold-light: #e8b85c;
  --cream:      #faf7f2;
  --warm-gray:  #f0ebe3;
  --text:       #2c2c2c;
  --text-muted: #6b6b6b;
  --border:     #ddd5c8;
  --white:      #ffffff;
  --green:      #4a7c59;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);

  --radius:     6px;
  --radius-lg:  12px;
  --container:  1120px;
  --header-h:   72px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}
.btn-nav {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  padding: 9px 20px;
  font-size: 14px;
}
.btn-nav:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-full { width: 100%; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .3px;
}
.logo-pa {
  color: var(--gold);
}
.logo-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a:not(.btn) {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 400;
  transition: color .15s;
}
.main-nav a:not(.btn):hover { color: var(--white); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--navy-light);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85);
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0f1e2e 0%, #1e3a5f 45%, #2d5a3d 100%);
}

/* Subtle texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,151,58,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(45,90,61,.3) 0%, transparent 60%);
  pointer-events: none;
}

/* Mountain silhouette */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpolygon points='0,180 0,120 180,40 360,100 480,20 640,90 800,10 960,80 1100,30 1260,90 1440,50 1440,180' fill='rgba(0,0,0,0.18)'/%3E%3Cpolygon points='0,180 0,140 200,80 380,130 520,60 700,120 880,50 1040,110 1200,70 1440,100 1440,180' fill='rgba(0,0,0,0.12)'/%3E%3C/svg%3E")
    no-repeat bottom center / cover;
  pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(201,151,58,.18);
  border: 1px solid rgba(201,151,58,.4);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(201,151,58,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(201,151,58,.08);
  backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(201,151,58,.3);
}
.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.badge-line1 {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.badge-year {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.badge-line2 {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: 1px;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--navy-light);
  border-bottom: 3px solid var(--gold);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.trust-item.visible { opacity: 1; transform: none; }
.trust-icon { font-size: 20px; }
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.2);
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 96px 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-header.centered {
  text-align: center;
  margin-bottom: 56px;
}
.section-header.centered .section-intro {
  margin: 0 auto;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo-placeholder {
  background: #c8d8e8;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-placeholder svg {
  width: 100%;
  height: 100%;
}
.about-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 32px 16px 14px;
  text-align: center;
  letter-spacing: .5px;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.stat.visible { opacity: 1; transform: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(16px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-card.featured .service-icon { color: var(--gold); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,.72); }
.service-card.featured .service-list li {
  color: rgba(255,255,255,.8);
  border-bottom-color: rgba(255,255,255,.1);
}
.service-card.featured .service-list li::before { color: var(--gold); }

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 0;
  border-top: 4px solid var(--gold);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.cta-copy p {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  max-width: 520px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}
.contact-detail strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-detail p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.contact-detail a {
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  transition: color .15s;
}
.contact-detail a:hover { color: var(--gold-light); }

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form h3, .form-success h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,45,64,.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-disclaimer {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  gap: 12px;
}
.success-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.form-success p {
  color: var(--text-muted);
  font-size: 16px;
}

/* MAP */
.map-section {
  margin-top: 72px;
  padding-top: 0;
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-name {
  font-size: 18px;
}
.footer-desc {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  max-width: 280px;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong,
.footer-contact strong {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-links a,
.footer-contact a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: color .15s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold); }
.footer-contact p {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.6;
}
.footer-bottom {
  padding: 18px 0;
  background: rgba(0,0,0,.2);
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-badge { display: none; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .section { padding: 64px 0; }
  .hero-content { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-bar-inner { flex-direction: column; gap: 8px; }
  .trust-divider { display: none; }
  .trust-item { padding: 4px 16px; }
  .about-stats { flex-direction: column; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
