/* =====================================================
  Site Styles for "Your Agency" — clean, mostly white
  HOW TO EDIT:
  - Change colors via CSS variables in :root below.
  - Adjust spacing by tweaking --space-* values.
  - Typography uses Inter; swap in your preferred font.
===================================================== */

:root {
  /* Color scheme — predominantly white */
  --bg: #ffffff;
  --text: #0f172a;       /* Dark slate for readability */
  --muted: #475569;      /* Muted text */
  --line: #e5e7eb;       /* Subtle borders */
  --accent: #0ea5e9;     /* Sky blue accent (links, buttons) */
  --accent-ink: #ffffff; /* Button text */
  --card: #ffffff;       /* Card background */
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.06);

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

/* Global resets */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Container and section spacing */
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: var(--space-24) 0; }
.section-header { margin-bottom: var(--space-12); }
.section-header h2 { font-size: clamp(1.75rem, 2.5vw, 2rem); margin: 0 0 var(--space-2); }
.section-header p { margin: 0; color: var(--muted); }

/* Accessible only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================== Header / Nav =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

/* Logo placeholder styles */
.logo {
  
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: .2px;
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: var(--muted);
  background: #fafafa;
}

.logo-img {
  height: 100px; /* Adjust this to fit your design */
  width: auto;
}

.logo-text { 
  font-family: "Montserrat", Inter, system-ui, sans-serif; /* use Montserrat first */
  font-weight: 800;                /* heavy, logo-like weight */
}

/* Nav styles */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-6);
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f8fafc;
  outline: none;
}

/* Mobile nav button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--space-2);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
}

/* ================ Hero (Home) ================ */
.hero {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.cta-row { display: flex; gap: var(--space-4); margin-top: var(--space-6); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
}

/* ================ Work Grid ================ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-8);
}

.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-6);
}

.card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.125rem;
}

.card p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

.card-link {
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--line);
}
.card-link:hover { border-color: var(--text); }

/* ================ About ================ */
.about-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
.about-text h3 { margin-top: 0; }
.checklist {
  margin: var(--space-6) 0 0;
  padding-left: 1.25rem;
}
.checklist li { margin-bottom: .35rem; }

.about-media img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ================ Contact Form ================ */
.contact-form {
  max-width: 680px;
  display: grid;
  gap: var(--space-6);
}
.form-row {
  display: grid;
  gap: var(--space-2);
}
label { font-weight: 700; }
input, textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-actions { display: flex; align-items: center; gap: var(--space-4); }
.form-hint { margin: 0; color: var(--muted); font-size: .95rem; }

/* ================ Footer ================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0;
  background: #ffffff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-to-top { text-decoration: none; font-weight: 700; color: var(--text); }
.back-to-top:hover { text-decoration: underline; }

/* ================ Responsive ================ */
@media (max-width: 960px) {
  .card { grid-column: span 6; }
  .about-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Show mobile menu button */
  .nav-toggle { display: inline-block; }
  /* Convert nav to a panel */
  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    width: min(92vw, 360px);
    background: var(--bg);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    box-shadow: var(--shadow);
    padding: var(--space-6);
    transform: translateX(110%);
    transition: transform .2s ease;
  }
  .site-nav.open { transform: translateX(0%); }
  .site-nav ul { flex-direction: column; gap: var(--space-4); }

  .grid { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 6; }

  .hero { padding-top: var(--space-16); }
}
