/* 
 Theme Name: DA Architect Studio
 Description: Minimal, clean one-page theme for an architectural practice.
 Version: 1.0
*/

:root {
  --bg: #f6f6f6;
  --bg-alt: #ffffff;
  --text: #181818;
  --muted: #787878;
  --accent: #c4a26a;
  --border: #e0e0e0;
  --max-width: 1120px;
  --radius: 14px;
}

/* =========================
   RESET + BASE
   ========================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* MAIN WRAPPER */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 3.75rem;
}

/* SECTION SPACING (you said it feels busy — this fixes it) */
section { margin-bottom: 4.25rem; }
@media (max-width: 768px) {
  main { padding: 2rem 1.1rem 3rem; }
  section { margin-bottom: 3.25rem; }
}

/* Headings */
.section-heading {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.75rem;
  margin-bottom:2rem;
}


.section-heading h2 {
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


  .section-heading p{
  color:#555;
  font-size:0.9rem;
 max-width: none;
  white-space: nowrap;
}
@media (max-width: 768px){
  .section-heading p{
    white-space: normal;
  }
}


/* =========================
   HEADER / NAV (SCOPED)
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(246,246,246,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo-wrap img { height: 36px; width: auto; }

.logo-text {
  font-size: 0.95rem;          /* make name feel “primary” */
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Desktop menu */
.main-nav ul {
  display: flex;
  gap: 2.25rem;                /* more breathing room */
  list-style: none;
  font-size: 0.85rem;          /* menu smaller than company name */
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #b28f55;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* =========================
   MOBILE NAV (FIXED)
   - centred toggle
   - no overflow
   - no “sits under logo weirdly”
   ========================= */

@media (max-width: 900px) {
  .site-header .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .logo-wrap { justify-content: center; }

  .menu-toggle {
    display: block;
    margin-top: 0.25rem;
  }

  .header-cta { display: none; } /* optional on mobile */

  .main-nav { width: 100%; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 0.9rem 0 0.25rem;
  }

  /* support either class from your JS: .open or .is-open */
  .main-nav.open ul,
  .main-nav.is-open ul {
    display: flex;
  }
}

/* =========================
   HERO
   ========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1rem 0 0;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }

.hero p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 460px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note { font-size: 0.8rem; color: var(--muted); }

.hero-visual {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: grid;
  grid-template-rows: minmax(0, 3fr) auto;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats {
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.hero-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.hero-stat-value { font-size: 1.1rem; font-weight: 500; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 0.75rem; }
  .hero-visual { order: -1; }
}

/* =========================
   PROJECTS (CONSISTENT IMAGES)
   ========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Your HTML has <article><img/><div class="project-body">... */
.project-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.project-body {
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.project-title { font-size: 1rem; font-weight: 500; }

.project-meta { font-size: 0.8rem; color: var(--muted); }

.project-desc {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* =========================
   SERVICES
   ========================= */

.services-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-panel {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem 1.6rem 1.7rem;
}

.service-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.service-heading { font-size: 1.15rem; margin-bottom: 0.6rem; }

.service-panel p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.9rem;
}

.service-panel ul { list-style: none; font-size: 0.85rem; color: #444; }
.service-panel li + li { margin-top: 0.35rem; }
.service-panel li::before { content: "– "; color: var(--accent); }

@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
}

/* =========================
   PROCESS
   ========================= */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.process-step {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.2rem 1.2rem 1.4rem;
  font-size: 0.85rem;
}

.process-step-number {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.process-step h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }

@media (max-width: 800px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* =========================
   ABOUT
   ========================= */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.1fr);
  gap: 2rem;
  align-items: center;
}

.about-layout img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
}

.about-text p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.9rem;
}

.about-meta { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
}

/* =========================
   CONTACT
   ========================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 2fr);
  gap: 2rem;
}

form {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.6rem 1.5rem 1.7rem;
  display: grid;
  gap: 1rem;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.6rem 0.65rem;
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  outline: none;
  background: #fafafa;
  transition: border 0.15s ease, background 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #ffffff;
}

textarea { min-height: 120px; resize: vertical; }

.contact-info { font-size: 0.9rem; color: #555; }
.contact-info p + p { margin-top: 0.6rem; }

.contact-highlight {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-block { margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* =========================
   FOOTER (kept as your original light footer)
   ========================= */
/* =========================
   FOOTER (DARK) — matches footer.php
   ========================= */

.site-footer{
  background:#111;
  color:#f2f2f2;
  padding:2.75rem 0 1.75rem;
  margin-top:4rem;
}

.site-footer a{
  color:#f2f2f2;
  text-decoration:none;
}

.site-footer a:hover{
  color:var(--accent);
}

/* 3-column grid */
.site-footer .footer-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 1.25rem;
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.3fr);
  gap:2.25rem;
  font-size:0.9rem;
  color:rgba(242,242,242,0.85);
}

/* Left column branding */
.footer-logo{
  display:flex;
  align-items:baseline;
  gap:0.6rem;
  margin-bottom:0.6rem;
}

.footer-mark{
  font-weight:600;
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-size:0.8rem;
}

.footer-name{
  font-size:1rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

.footer-tagline{
  color:rgba(242,242,242,0.65);
  max-width:28rem;
}

/* Column headings */
.site-footer .footer-inner h3{
  font-size:0.8rem;
  letter-spacing:0.15em;
  text-transform:uppercase;
  margin-bottom:0.75rem;
  color:rgba(242,242,242,0.9);
}

/* Nav list */
.footer-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.footer-nav li + li{
  margin-top:0.35rem;
}

/* Contact spacing */
.footer-contact p{
  margin:0 0 0.9rem;
}

.footer-social{
  margin:0;
  color:rgba(242,242,242,0.75);
}

/* Bottom bar */
.site-footer .footer-bottom{
  max-width:var(--max-width);
  margin:1.75rem auto 0;
  padding:1rem 1.25rem 0;
  border-top:1px solid rgba(255,255,255,0.10);
  display:flex;
  justify-content:space-between;
  gap:1rem;
  font-size:0.8rem;
  color:rgba(242,242,242,0.55);
}

.footer-small{
  color:rgba(242,242,242,0.55);
}

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

@media (max-width: 700px){
  .site-footer .footer-inner{
    grid-template-columns:1fr;
    gap:1.5rem;
  }
  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}


.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================
   PROJECT DETAIL PAGE (Northwood/Hanlons/Estuary templates)
   ========================= */

.project-detail .project-hero {
  padding-top: 1.5rem;   /* tighter gap under menu */
  padding-bottom: 3rem;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.project-hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0.4rem 0 0.3rem;
}

.project-subtitle {
  font-size: 1rem;
  margin: 0 0 1.2rem;
  color: var(--accent);
}

.project-facts-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project-facts-inline .fact-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b8b8b;
  margin-bottom: 0.1rem;
}

.project-facts-inline .fact-value {
  font-size: 0.98rem;
  color: #222;
}

.project-hero-image img {
  width: 100%;
  border-radius: 1.2rem;
  display: block;
  box-shadow: 0 16px 45px rgba(0,0,0,0.08);
  object-fit: cover;
}

.project-body {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  background: #fafafa;
}

.project-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.project-sidebar {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.04);
  position: sticky;
  top: 140px;
  align-self: flex-start;
}

.project-sidebar .sidebar-heading {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}

.project-facts-list { list-style: none; padding: 0; margin: 0; }

.project-facts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.project-facts-list li:last-child { border-bottom: none; }

.project-facts-list span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9a9a9a;
}

.project-facts-list strong { font-size: 0.95rem; color: #222; }

.project-content h2 {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2.25rem 0 0.6rem;
}

.project-content p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  color: #333;
}

/* Inline images (between sections) */
.project-inline-image {
  margin: 1.75rem 0 2.25rem;
}
.project-inline-image img {
  width: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* Gallery */
.project-gallery { padding-bottom: 3.5rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.gallery-grid img { width: 100%; border-radius: 1.1rem; }

/* Related projects (dark panel) */
.related-projects {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background: #111;
  color: #f5f5f5;
}

.related-projects h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.related-intro { max-width: 520px; font-size: 0.96rem; color: #ccc; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.2rem;
}

.related-card {
  background: #181818;
  border-radius: 1rem;
  overflow