/* =============================================================
   ALTESE — Construction Advisory
   Refined Editorial | Cormorant Garamond + Jost | Warm Parchment
   ============================================================= */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: #F7F5F1;
  color: #1C1C1C;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

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

:root {
  --bg:         #F7F5F1;
  --bg-alt:     #EEECEA;
  --ink:        #1C1C1C;
  --grey:       #767167;
  --light:      #E8E5E0;
  --divider:    #DDD9D3;
  --navy:       #1F3A52;
  --dark-navy:  #0F1E2E;
  --chichest:   #2C4A3E;
  --max-w:      1140px;
  --pad-x:      clamp(1.5rem, 5vw, 4.5rem);
  --section-py: clamp(6rem, 12vw, 9rem);
}

/* ── Typography ── */
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

p { color: var(--grey); line-height: 1.8; font-size: 0.95rem; font-weight: 300; }
strong { font-weight: 500; color: var(--ink); }

.label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 1.25rem;
}

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--pad-x); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.75rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(247, 245, 241, 0.97);
  border-bottom-color: var(--divider);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; }

/* Chichest cross-brand link */
.nav-chichest-link {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #2C4A3E !important;
  opacity: 1 !important;
  border: 1px solid #2C4A3E !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 1px !important;
  transition: background 0.25s, color 0.25s !important;
}
.nav-chichest-link:hover {
  background: #2C4A3E !important;
  color: #F5F0E8 !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity 0.35s;
}
.nav-overlay.open { display: flex; opacity: 1; }
.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.nav-overlay a:hover { opacity: 0.5; }
.nav-overlay .nav-chichest-link {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.8rem !important;
  color: #2C4A3E !important;
  border: 1px solid #2C4A3E !important;
  padding: 0.6rem 1.5rem !important;
}
.nav-overlay-close {
  position: absolute;
  top: 1.75rem; right: var(--pad-x);
  background: none; border: none;
  color: var(--ink); font-size: 1.75rem;
  cursor: pointer; line-height: 1;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-x);
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.2s forwards;
}

.hero h1 {
  font-style: italic;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1.05;
  max-width: 860px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--grey);
  max-width: 540px;
  line-height: 1.8;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}
.hero-cta:hover { background: var(--navy); }

.hero-divider {
  width: 1px;
  height: 60px;
  background: var(--divider);
  margin: 4rem auto 0;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-scroll-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.75rem;
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
}

/* Sketch section */
.sketch-section {
  background: var(--bg);
  padding: 0 0 6rem;
  overflow: hidden;
}

.sketch-section svg {
  width: 100%;
  height: auto;
  max-height: 460px;
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding: calc(6rem + 80px) var(--pad-x) 5rem;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}

.page-hero h1 { font-style: italic; }

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.section { padding: var(--section-py) var(--pad-x); max-width: var(--max-w); margin-inline: auto; }
.section-alt { padding: var(--section-py) var(--pad-x); background: var(--bg-alt); }
.section-alt-inner { max-width: var(--max-w); margin-inline: auto; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header p { max-width: 600px; margin-inline: auto; }

/* ── Why Altese 3-col ── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.three-col-item { text-align: center; }
.three-col-item h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.three-col-item p { font-size: 0.9rem; }

/* ── Pain points 4-col ── */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.pain-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--divider);
  background: var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}
.pain-card:hover { border-color: var(--ink); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.pain-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.pain-card p { font-size: 0.85rem; line-height: 1.75; }

/* ── Services list ── */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }

.service-item {
  padding: 2.5rem 0;
  border-top: 1px solid var(--divider);
}
.service-item .service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}
.service-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.service-item p { font-size: 0.9rem; line-height: 1.8; }

/* ── Services full page ── */
.service-article { margin-bottom: 5rem; padding-bottom: 4rem; border-bottom: 1px solid var(--divider); }
.service-article:last-child { border-bottom: none; }

.service-meta {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: baseline;
  margin-bottom: 2rem;
}
.service-meta .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--light);
  line-height: 1;
}

.service-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--light); border-bottom: 1px solid var(--light); margin: 2rem 0; }
.detail h4 { font-family: 'Jost', sans-serif; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.75rem; }
.detail p, .detail li { font-size: 0.9rem; color: var(--grey); line-height: 1.75; }
.detail ul { list-style: disc; padding-left: 1.25rem; }
.detail li { margin-bottom: 0.35rem; }

/* ── Process phases ── */
.phase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.phase { padding: 2.5rem; background: var(--bg); border: 1px solid var(--divider); }
.phase-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--light); margin-bottom: 0.5rem; }
.phase h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 400; margin-bottom: 0.75rem; }
.phase p { font-size: 0.9rem; line-height: 1.75; }
.phase ul { list-style: disc; padding-left: 1.25rem; font-size: 0.9rem; color: var(--grey); line-height: 1.75; }
.phase li { margin-bottom: 0.3rem; }

.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4rem; }
.principle-card { padding: 2rem; border-top: 2px solid var(--ink); }
.principle-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.timeline-note { padding: 1.75rem 2rem; border-left: 2px solid var(--divider); margin-bottom: 1.5rem; background: var(--bg); }
.timeline-note p { font-size: 0.9rem; line-height: 1.75; }

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; margin-top: 4rem; }
.about-block { padding: 0 0 2rem; border-bottom: 1px solid var(--divider); }
.about-block h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-block p { font-size: 0.9rem; line-height: 1.85; }

.philosophy-inner { max-width: var(--max-w); margin-inline: auto; text-align: center; }
.philosophy-inner h2 { margin-bottom: 1.25rem; }
.philosophy-inner > p { max-width: 620px; margin-inline: auto; margin-bottom: 3.5rem; }
.phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.phil-item h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 0.75rem; }
.phil-item p { font-size: 0.9rem; line-height: 1.75; }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; max-width: 960px; margin-inline: auto; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; flex-shrink: 0; margin-top: 0.2rem; }
.contact-detail a { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.contact-detail span { color: var(--grey); font-size: 0.9rem; }

.form-label { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); display: block; margin-bottom: 0.5rem; }
.form-field { margin-bottom: 1.5rem; }
.form-field input, .form-field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--divider); padding: 0.75rem 0; font-family: 'Jost', sans-serif; font-size: 0.9rem; font-weight: 300; color: var(--ink); outline: none; transition: border-color 0.25s; resize: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-submit { background: var(--ink); color: var(--bg); border: none; padding: 1rem 2.5rem; font-family: 'Jost', sans-serif; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: background 0.25s; margin-top: 1rem; }
.form-submit:hover { background: var(--navy); }
.form-success { display: none; background: var(--ink); color: var(--bg); padding: 1rem 1.25rem; font-size: 0.85rem; margin-top: 1.25rem; }

/* ── CTA block ── */
.cta-block { padding: var(--section-py) var(--pad-x); text-align: center; border-top: 1px solid var(--divider); }
.cta-block h2 { margin-bottom: 1.5rem; }
.cta-block p { max-width: 580px; margin-inline: auto; margin-bottom: 2.5rem; }
.cta-link { display: inline-flex; align-items: center; gap: 0.75rem; font-family: 'Jost', sans-serif; font-weight: 400; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg); background: var(--ink); padding: 1rem 2rem; text-decoration: none; transition: background 0.25s; }
.cta-link:hover { background: var(--navy); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(247,245,241,0.7);
  padding: 4rem var(--pad-x) 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247,245,241,0.12);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; }
.footer-nav a { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(247,245,241,0.6); transition: color 0.2s; }
.footer-nav a:hover { color: var(--bg); }

.footer-contact { text-align: right; font-size: 0.85rem; }
.footer-contact a { color: rgba(247,245,241,0.7); transition: color 0.2s; }
.footer-contact a:hover { color: var(--bg); }

.footer-bottom { max-width: var(--max-w); margin-inline: auto; font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(247,245,241,0.35); text-align: center; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { text-align: left; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .three-col, .four-col, .services-list, .service-detail-grid,
  .about-grid, .phase-grid, .principle-grid, .phil-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { text-align: center; }
  .footer-nav { justify-content: center; }
  .service-meta { grid-template-columns: 1fr; gap: 0.5rem; }
  .service-meta .num { font-size: 2rem; }
}
