/* ============================================================
   Charlton & Associates — Shared Stylesheet
   Aesthetic: Refined luxury minimalism · Editorial precision
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:   #f7f5f1;
  --white:   #ffffff;
  --charcoal:#1c1c1c;
  --mid:     #4a4a4a;
  --light:   #888;
  --rule:    #d8d3cb;
  --gold:    #b59a6a;
  --gold-lt: #cdb98a;
  --nav-h:   72px;
  --max:     1120px;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Montserrat', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 999;
  padding: 24px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}
.mobile-menu a.active { color: var(--charcoal); }

/* ── Page wrapper ──────────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Section helpers ───────────────────────────────────────── */
.section { padding: 80px 32px; }
.section--sm { padding: 56px 32px; }
.container { max-width: var(--max); margin: 0 auto; }

/* ── Eyebrow / section labels ──────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.rule-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--mid); max-width: 640px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--charcoal); color: var(--white); }
.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold:hover { background: var(--gold); color: var(--white); }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.55);
  padding: 56px 32px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo img { height: 32px; filter: brightness(0) invert(1); opacity: 0.8; margin-bottom: 16px; }
.footer-logo p { font-size: 12px; color: rgba(255,255,255,0.45); max-width: none; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,0.6); max-width: none; line-height: 1.9; }
.footer-contact a { color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ── Hero (index) ──────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: url('https://www.charltoninc.ca/uploads/1/3/3/3/133357265/cushman-aerial_orig.png') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}
.hero-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero h1 { margin-bottom: 28px; max-width: 680px; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ── Services strip (index) ────────────────────────────────── */
.services-strip {
  background: var(--charcoal);
  padding: 56px 32px;
}
.services-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.service-item {
  padding: 36px 32px;
  background: var(--charcoal);
}
.service-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 12px;
  display: block;
}
.service-item h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.service-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: none;
  line-height: 1.7;
}

/* ── About page ────────────────────────────────────────────── */
.about-hero {
  background: var(--cream);
  padding: 100px 32px 72px;
  text-align: center;
}
.about-hero h1 { margin-bottom: 16px; }
.about-hero p { margin: 0 auto; font-size: 1.05rem; }
.about-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-block h2 { margin-bottom: 20px; }
.about-block p { line-height: 1.9; }
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.expertise-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  color: var(--mid);
}

/* ── Opportunities page ────────────────────────────────────── */
.opp-hero {
  background: var(--cream);
  padding: 100px 32px 72px;
}
.opp-hero h1 { margin-bottom: 16px; }
.opp-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.opp-img { overflow: hidden; }
.opp-img img { width: 100%; transition: transform .6s ease; }
.opp-img:hover img { transform: scale(1.03); }
.opp-detail .eyebrow { margin-bottom: 12px; }
.opp-detail h2 { margin-bottom: 20px; }
.opp-detail p { margin-bottom: 28px; }
.opp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0 36px;
  padding: 28px;
  border: 1px solid var(--rule);
  background: var(--cream);
}
.opp-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--charcoal);
  font-weight: 500;
}
.opp-stat span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

/* ── Projects page ─────────────────────────────────────────── */
.projects-hero {
  background: var(--cream);
  padding: 100px 32px 72px;
}
.projects-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e8e4de;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: var(--white);
  transform: translateY(4px);
  transition: transform .3s;
}
.project-card:hover .project-overlay { transform: translateY(0); }
.project-overlay h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
}
.project-overlay span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ── Instagram / Gallery ───────────────────────────────────── */
.gallery-section {
  background: var(--cream);
  padding: 72px 32px;
  text-align: center;
}
.gallery-section h2 { margin-bottom: 8px; }
.gallery-section > p { margin: 0 auto 40px; }
.ig-embed-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color .2s;
}
.ig-link:hover { color: var(--charcoal); }
.ig-link svg { width: 18px; height: 18px; }

/* ── Contact page ──────────────────────────────────────────── */
.contact-hero {
  background: var(--cream);
  padding: 100px 32px 72px;
}
.contact-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-info address {
  font-style: normal;
  font-size: 14px;
  line-height: 2;
  color: var(--mid);
  margin-bottom: 32px;
}
.contact-info a { color: var(--mid); transition: color .2s; }
.contact-info a:hover { color: var(--charcoal); }
.map-wrap { margin-top: 32px; border: 1px solid var(--rule); overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; height: 280px; border: none; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
}
input, textarea, select {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus { border-color: var(--charcoal); }
textarea { resize: vertical; min-height: 140px; }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #f0f7f0;
  border: 1px solid #b8d8b8;
  font-size: 13px;
  color: #2d6e2d;
}

/* ── Page-level hero for inner pages ───────────────────────── */
.inner-hero-text { max-width: 640px; }
.inner-hero-text h1 { margin-bottom: 12px; }
.inner-hero-text p { font-size: 1rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 80vh; }
  .hero::before { width: 100%; opacity: 0.08; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item { padding: 28px 24px; }

  .about-body { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px; }
  .opp-card { grid-template-columns: 1fr; padding: 0 24px 64px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-body { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section { padding: 56px 24px; }
  .about-hero, .opp-hero, .projects-hero, .contact-hero { padding: 80px 24px 48px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .nav-logo img { height: 30px; }
  h1 { font-size: 2.2rem; }
}
