/* ============================================================
   PAiD STUDIO & CONSULTANCY — SHARED STYLESHEET
   ============================================================
   This ONE file controls the look of the ENTIRE website.
   Change a colour or font here, and it updates on EVERY page.

   Used by: index.html, projects.html, project-*.html,
            videos.html, planning-tool.html
   ============================================================ */

/* ---- BRAND TOKENS (edit these to restyle the whole site) ---- */
:root {
  --ivory: #F7F3EC;
  --ivory-2: #EDE8DF;
  --navy: #1F2F46;
  --navy-light: #2C4160;
  --gold: #C8A96B;
  --gold-2: #D9BF8A;
  --stone: #CFC8BE;
  --charcoal: #2E2E2E;
  --text-muted: #7A7570;
  --white: #FFFFFF;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.25,0.46,0.45,0.94);

  /* CONTACT DETAILS — edit once, used across all pages via HTML.
     (These are CSS notes; actual values are in the HTML footer/header.) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; color: var(--navy); line-height: 1.2; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ---- HEADER (shared across all pages) ---- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(247,243,236,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,107,0.18);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 24px rgba(31,47,70,0.08); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; text-decoration: none; gap: 1px; }
.logo-mark { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; line-height: 1; }
.logo-mark span { color: var(--gold); }
.logo-sub { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.28em; color: var(--text-muted); text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 2.2rem; }
nav a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  position: relative; transition: color var(--transition);
}
nav a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--transition); }
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--gold); }
nav a.active::after { width: 100%; }
.nav-cta { background: var(--gold); color: var(--navy)!important; padding: 0.6rem 1.3rem; border-radius: var(--radius); font-weight: 600; }
.nav-cta::after { display: none!important; }
.nav-cta:hover { background: var(--navy)!important; color: var(--ivory)!important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--ivory); border-bottom: 1px solid var(--stone);
  padding: 1.5rem 2rem 2rem; flex-direction: column; gap: 1.2rem; z-index: 999;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); text-decoration: none;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--stone);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold); }

/* ---- SHARED LAYOUT HELPERS ---- */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-label.center { justify-content: center; }
.section-label.center::before { display: none; }
.section-label.center::after { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,4vw,3.2rem); font-weight: 400; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); max-width: 560px; line-height: 1.8; }
.divider { width: 40px; height: 1px; background: var(--gold); margin: 1.5rem 0; }
.divider.center { margin: 1.5rem auto; }

/* ---- BUTTONS (shared) ---- */
.btn-primary { display: inline-block; padding: 0.85rem 2.2rem; background: var(--gold); color: var(--navy); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); border: 1px solid var(--gold); transition: all var(--transition); }
.btn-primary:hover { background: transparent; color: var(--gold); transform: translateY(-2px); }
.btn-outline { display: inline-block; padding: 0.85rem 2.2rem; background: transparent; color: var(--navy); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); border: 1px solid var(--stone); transition: all var(--transition); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-navy { display: inline-block; padding: 0.9rem 2.4rem; background: var(--navy); color: var(--ivory); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-radius: var(--radius); border: 1px solid var(--navy); transition: all var(--transition); }
.btn-navy:hover { background: transparent; color: var(--navy); }

/* ---- PAGE HERO (for sub-pages: projects, videos, etc.) ---- */
.page-hero {
  background: var(--navy); color: var(--ivory);
  padding: 140px 2rem 70px; text-align: center; position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: linear-gradient(var(--ivory) 1px, transparent 1px), linear-gradient(90deg, var(--ivory) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-glow { position: absolute; top: -150px; right: -150px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(200,169,107,0.15), transparent 70%); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero .eyebrow { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { content: ''; width: 36px; height: 1px; background: var(--gold); opacity: 0.5; }
.page-hero h1 { color: var(--ivory); font-weight: 300; font-size: clamp(2.4rem,5vw,3.8rem); margin-bottom: 1rem; }
.page-hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.page-hero p { max-width: 580px; margin: 0 auto; color: rgba(247,243,236,0.7); font-size: 1rem; line-height: 1.7; }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ---- PROJECTS GRID (projects.html) ---- */
.projects-section { padding: 80px 0 100px; background: var(--ivory); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.55rem 1.3rem; border: 1px solid var(--stone); border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; color: var(--navy);
  background: var(--white); cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  aspect-ratio: 4/3; background: var(--navy); text-decoration: none; display: block;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.06); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,47,70,0.92) 0%, rgba(31,47,70,0.4) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; transition: background var(--transition);
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(31,47,70,0.95) 0%, rgba(31,47,70,0.65) 60%, rgba(31,47,70,0.3) 100%); }
.project-tag { display: inline-block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.project-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--ivory); line-height: 1.2; }
.project-meta { font-size: 0.78rem; color: rgba(247,243,236,0.75); margin-top: 0.3rem; }
.project-arrow { font-size: 0.78rem; color: var(--gold); margin-top: 0.6rem; opacity: 0; transform: translateX(-8px); transition: all var(--transition); }
.project-card:hover .project-arrow { opacity: 1; transform: translateX(0); }

/* ---- PROJECT DETAIL (project-*.html, ArchDaily-style) ---- */
.project-hero { width: 100%; height: 70vh; min-height: 420px; max-height: 720px; overflow: hidden; position: relative; background: var(--navy); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-detail { padding: 60px 0 100px; background: var(--ivory); }
.project-layout { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
.project-body h1 { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 400; margin-bottom: 0.5rem; }
.project-body .project-loc { font-size: 0.95rem; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 2rem; font-weight: 500; }
.project-body p { font-size: 1rem; color: var(--charcoal); line-height: 1.9; margin-bottom: 1.4rem; }
.project-body h2 { font-size: 1.8rem; font-weight: 500; margin: 2.5rem 0 1rem; }
.project-body h3 { font-size: 1.3rem; font-weight: 500; margin: 2rem 0 0.8rem; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.project-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.project-gallery img.full { grid-column: 1 / -1; aspect-ratio: 16/9; }
.specs-sidebar { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); padding: 2rem; }
.specs-sidebar h3 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; font-family: 'Inter', sans-serif; }
.spec-row { display: flex; flex-direction: column; gap: 2px; padding: 0.9rem 0; border-bottom: 1px solid var(--stone); }
.spec-row:last-of-type { border-bottom: none; }
.spec-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.spec-value { font-size: 0.95rem; font-weight: 500; color: var(--navy); }
.specs-cta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--stone); }
.specs-cta a { width: 100%; text-align: center; }

/* ---- VIDEOS PAGE (videos.html) ---- */
.videos-section { padding: 80px 0 100px; background: var(--ivory); }
.videos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.video-card { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(31,47,70,0.1); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--navy); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 1.5rem 1.8rem 2rem; }
.video-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.video-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.25; }
.video-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ---- CTA STRIP (shared) ---- */
.cta-strip { padding: 90px 0; background: var(--gold); text-align: center; }
.cta-strip-inner { max-width: 700px; margin: 0 auto; padding: 0 2rem; }
.cta-strip h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 400; color: var(--navy); margin-bottom: 1rem; }
.cta-strip p { font-size: 0.95rem; color: rgba(31,47,70,0.7); margin-bottom: 2rem; line-height: 1.8; }
.cta-strip .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER (shared across all pages) ---- */
footer { background: var(--navy); padding: 60px 0 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(200,169,107,0.12); margin-bottom: 2rem; }
.footer-tagline { font-size: 0.82rem; color: rgba(247,243,236,0.45); margin-top: 1rem; line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.83rem; color: rgba(247,243,236,0.5); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item { font-size: 0.82rem; color: rgba(247,243,236,0.5); margin-bottom: 0.6rem; line-height: 1.6; }
.footer-contact-item a { color: inherit; text-decoration: none; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(247,243,236,0.3); }

/* ---- ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  nav { display: none; } .hamburger { display: flex; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .specs-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section-inner { padding: 0 1.25rem; }
  .page-hero { padding: 120px 1.5rem 50px; }
}
