/* ============================
   GLOBAL RESET & BASE STYLES
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Default body font */
}

body {
  background-color: #F9FAFB;
  color: #5d6471;
  line-height: 1.6;
}

h1 {
  color: #364b77; /* Primary heading color */
}

/* Overlay inherits section background color and makes it transparent */
.section-overlay {
  position: absolute;
  inset: 0;
  background-color: inherit; /* pulls from the section's background-color */
  opacity: 0.5; /* transparency */
  pointer-events: none;
}

/* Individual section background colors */
#home { background-color: #F5F5F5; } /*  */
#work { background-color: #C8D0D6; } /* Arctic Mist (Deep) */
#services { background-color: #D8D3C8; } /* Champagne Smoke */
#about { background-color: #E0C6A8; } /* Amber Veil */
#contact { background-color: #BFC5CB; } /* Slate Whisper */
#values { background-color: #BFCFC4; } /* Sage Whisper */ 
#approach { background-color: #CCC9C2; } /* Ivory Sand */ 


/* ----------------------------
   HERO LAYOUT (single source of horizontal offset)
   - Hero provides the left/right spacing so headings and copy align.
---------------------------- */
.hero-text {
  /* left padding = desired 15% offset, right kept as before */
  padding-top: 100px;
  padding-right: 10%;
  padding-bottom: 60px;
  padding-left: 15%;
  background: none; /* ensure no background hides images */
}

/* ============================
   TYPOGRAPHY (aligned to hero-text left)
   - Headings no longer add extra left-padding.
   - Right padding preserved per your earlier request.
============================ */ 


/* ============================
   TYPOGRAPHY
============================ */
h1, h2, h3, .title, .large-text, .small-text, .overtitle {
  font-family: 'Rubik', sans-serif; /* Unified font for headings */
}

/* OVERTITLE */
.overtitle {
  font-size: 1.4rem;
  font-weight: 500;  
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5d6471;
  margin-bottom: 0.6rem;

  /* IMPORTANT: no left padding here — hero-text controls the left offset */
  padding-left: 0;
  padding-right: 0%;
}

/* TITLE */
.title {
  font-size: 4.2rem;    /* requested size */
  font-weight: 600;
  color: #364b77;
  margin-bottom: 0.6rem;

  /* no left padding here */
  padding-left: 0;
  padding-right: 0%;
}

/* LARGE TEXT (section title) */
.large-text {
  font-size: 3.6rem;    /* requested size */
  font-weight: 600;
  color: #364b77;
  margin-bottom: 0.6rem;

  /* no left padding here */
  padding-left: 0;
  padding-right: 0%;
}

/* SMALL TEXT (subtitle / description) */
.small-text {
  font-size: 1.6rem;
  font-weight: 400;  
  color: #5d6471;
  margin-bottom: 0.6rem;

  /* small-text already aligned correctly — keep right padding */
  padding-left: 0;
  padding-right: 25%;
}

/* BODY COPY */
.copy-text {
  font-size: 1.2rem;
  color: #5d6471;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ============================
   HEADER & BURGER MENU
============================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

/* ===== Logo Size & Spacing ===== */
.logo {
  display: inline-block;
  max-height: 30px;
  line-height: 1;       /* Prevent extra vertical space */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* If the logo is an image inside a link */
.logo img {
  display: block;       /* Remove inline-gap space */
  max-height: 40px;
  height: auto;
}

.logo:hover {
  text-decoration: none;
}

/* Burger icon */
.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger div {
  height: 4px;
  background-color: #111827;
  border-radius: 2px;
}

/* Mobile nav menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F9FAFB;
  display: none;
  flex-direction: column;
  justify-content: center; /* vertical center */
  align-items: flex-start; /* align left */
  padding-left: 20%;
  z-index: 999;
}

.nav-menu.active {
  display: flex;
}

.nav-menu a {
  font-size: 2.5rem;
  color: #111827;
  font-family: 'Rubik', sans-serif;
  text-decoration: none;
  margin: 20px 0;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #bfc3cb; /* lighter grey text on hover */
}

/* ============================
   HERO TEXT BLOCKS
============================ */
.hero-text {
  padding: 100px 15% 60px;
  padding-right: 25%;
}

.hero-text h1 {
  font-size: 3.8rem;
  font-weight: bold;
  margin: 20px 0;
  padding-right: 20%;
}

.hero-text h3 {
  font-size: 1.2rem;
  color: #6B7280;
}

/* ============================
   SECTION STYLING
============================ */
section {
  width: 100%;
  min-height: 100vh;
  padding: 100px 0;
  box-sizing: border-box;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================
   CONTAINER LAYOUT
============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20%;
}

/* ============================
   SERVICES SECTION
============================ */
.services-container {
  padding: 0 20%;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.services-list div {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  color: #2c2c2c;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ============================
   WORK SECTION
============================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 20%;
  margin-top: 1rem;
}

.work-grid img {
  width: 100%;
  border-radius: 5px;
}

/* ============================
   CONTACT SECTION
============================ */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 40px 20% 80px;
  align-items: center;
}

.contact-form {
  flex: 1;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  color: #374151;
}

.contact-form button {
  padding: 0.75rem;
  background-color: #364b77;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #9CA3AF; /* Lighter grey on hover */
}

.contact-image {
  flex: 1;
}

.contact-image img {
  width: 100%;
  border-radius: 10px;
}

/* ===== Footer (3 sections) ===== */
.site-footer {
  background-color: #364b77;
  color: #F9FAFB;
  font-size: 0.95rem;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 40px 20%;          /* same width as copy sections */
}

/* Left (logo) */
.footer-logo img {
  display: block;
  max-height: 40px;           /* cap height */
  height: auto;
}
.footer-left small {
  display: block;
  margin-top: 8px;
  opacity: 0.9;
}

/* Center (address) */
.footer-center {
  text-align: center;
  font-style: normal;         /* keep address upright */
  line-height: 1.6;
}

/* Right (menu) */
.footer-right {
  text-align: right;
}
.footer-menu {
  list-style: none;
}
.footer-menu li + li {
  margin-top: 6px;            /* vertical rhythm */
}
.footer-menu a {
  color: #F9FAFB;
  text-decoration: none;
}
.footer-menu a:hover,
.footer-menu a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #E6ECF5;             /* subtle tint on hover */
}


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

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

.about-col {
  background: rgba(248, 248, 248, 0.6); /* subtle translucent background for readability */
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.about-col .overtitle {
  margin-bottom: 0.5rem;
}

.about-col .large-text {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.about-col .copy-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive: stack columns on tablets & phones */
@media (max-width: 992px) {
  .about-columns {
    grid-template-columns: 1fr;
  }
}


/* ============================
   Responsive Fallback (Modern Phones)
   - Place AFTER your current CSS
   - Targets small screens & touch best practices
============================ */

/* Global mobile tweaks */
html {
  -webkit-text-size-adjust: 100%;
}
:root {
  /* sensible mobile gutters */
  --mobile-x: max(16px, 6vw);
}
img, video {
  max-width: 100%;
  height: auto;
}

/* Respect reduced motion on mobile */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* iOS safe areas */
body {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* -------- Base type scale for small screens -------- */
@media (max-width: 768px) {
  .overtitle { font-size: clamp(0.9rem, 2.5vw, 1.05rem); }
  .large-text,
  h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
  .small-text { font-size: clamp(1rem, 3.6vw, 1.15rem); }
  .copy-text { font-size: clamp(0.95rem, 3.2vw, 1.05rem); }
}

/* -------- Layout & spacing -------- */
@media (max-width: 1024px) {
  /* tame big percentage paddings on tablet/phone */
  .container,
  .services-container,
  .work-grid,
  .contact-container {
    padding-left: var(--mobile-x);
    padding-right: var(--mobile-x);
  }

  section {
    /* avoid mobile 100vh issues; use dynamic viewport units */
    min-height: 100dvh;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  header {
    padding: 14px var(--mobile-x);
    background-color: rgba(249, 250, 251, 0.9); /* subtle backdrop for readability */
    backdrop-filter: saturate(180%) blur(6px);
  }

  /* Hero: reduce gutters, prevent overlong lines */
  .hero-text {
    padding-top: 72px;
    padding-bottom: 40px;
    padding-left: var(--mobile-x);
    padding-right: var(--mobile-x);
  }
  .hero-text h1 { padding-right: 0; }
  .small-text { padding-right: 0; }
}

/* -------- Phone-first stacking & grids -------- */
@media (max-width: 768px) {
  .services-list {
    grid-template-columns: 1fr; /* single column */
    gap: 1.1rem;
  }

  .work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-left: var(--mobile-x);
    padding-right: var(--mobile-x);
  }

  .contact-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .contact-image { order: 2; }
  .contact-form { order: 1; }

}

/* -------- Forms & tap targets -------- */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .contact-form button {
    width: 100%;
    padding: 0.9rem 1rem;
  }
}

/* -------- Navigation (burger + full-screen menu) -------- */
@media (hover: none) and (pointer: coarse) {
  .burger {
    width: 36px;
    height: 26px;
  }
  .burger div { height: 3px; }
}

@media (max-width: 768px) {
  .nav-menu {
    padding-left: var(--mobile-x);
    align-items: flex-start;
  }
  .nav-menu a {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    margin: 14px 0;
  }
}

/* -------- Extra-small devices (<= 380px) -------- */
@media (max-width: 380px) {
  .hero-text { padding-top: 60px; }
  .large-text, h1 { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .overtitle { letter-spacing: 0.04em; }
}

/* -------- Optional: light/dark awareness (keeps brand colors) -------- */
@media (prefers-color-scheme: dark) {
  body { background-color: #0f1115; color: #E5E7EB; }
  .nav-menu { background-color: #0f1115; }
  .contact-form input,
  .contact-form textarea {
    background: #111827;
    color: #E5E7EB;
    border-color: #374151;
  }
  .contact-form button:hover { background-color: #546086; }
}

/* Responsive stacking */
@media (max-width: 900px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px var(--mobile-x, 6vw);
    text-align: left;
  }
  .footer-center { text-align: left; }
  .footer-right { text-align: left; }
}