/* AVL Association of Nepal - main stylesheet */

:root {
  --primary: #d81e3f;
  --primary-dark: #b0132e;
  --primary-deep: #6e0c1c;
  --accent: #1a4fba;
  --accent-dark: #123a8c;
  --accent-glow: rgba(26, 79, 186, 0.2);

  /* Neutral foundation: warm off-whites and charcoal rather than
     cool grays, so the palette reads paper-like and timeless. */
  --text: #22262b;
  --text-light: #565f68;
  --text-faint: #868f99;
  --bg-page: #ffffff;
  --bg-light: #f6f5f2;
  --bg-soft: #efeeea;
  --white: #ffffff;
  --border: #e2e0da;
  --border-soft: #ebe9e4;
  --on-dark: #ccd6e3;
  --on-dark-muted: #8fa0b5;

  /* Shape: calm, moderate rounding throughout, no sharp or trend-driven cuts */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadow scale: soft, neutral, low-contrast */
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 20px -12px rgba(17, 24, 39, 0.1);
  --shadow-md: 0 20px 40px -18px rgba(17, 24, 39, 0.16);
  --shadow-focus: 0 0 0 3px var(--accent-glow);

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 36px;
  --space-8: 48px;
  --space-9: 56px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Type scale: deliberate steps, not an arbitrary ramp. Sizes stay
     restrained (hierarchy comes from weight, spacing and whitespace,
     not from oversized display text) and use clamp() so nothing needs
     a separate mobile override. */
  --text-caption: 0.78rem;   /* eyebrows, captions, meta */
  --text-xs: 0.78rem;
  --text-sm: 0.92rem;        /* card copy, list copy */
  --text-base: 1.05rem;      /* body */
  --text-nav: 0.92rem;       /* navigation, buttons */
  --text-md: 1.15rem;        /* lead paragraph, h4 */
  --text-lg: 1.35rem;        /* h3 */
  --text-xl: clamp(1.55rem, 1.4rem + 0.7vw, 1.85rem);   /* h3 large / block h2 */
  --text-2xl: clamp(1.9rem, 1.65rem + 1.1vw, 2.35rem);  /* section h2 */
  --text-3xl: clamp(2.3rem, 1.9rem + 1.8vw, 3.05rem);   /* hero heading */

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-dark);
}

/* Major display headings (hero, section titles): tight tracking and
   line-height, so large serif type reads composed rather than loose. */
h1, h2 {
  line-height: 1.14;
  letter-spacing: -0.018em;
}

/* Subheadings and component titles: slightly looser, no negative
   tracking needed once type is this size. */
h3, h4, h5, h6 {
  line-height: 1.3;
  letter-spacing: -0.004em;
}

p { line-height: 1.7; max-width: 62ch; }
p.lead { font-size: var(--text-md); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* Header / nav */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand .logo-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.brand h1 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}
.brand h1 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

nav.main-nav ul {
  display: flex;
  gap: var(--space-7);
  align-items: center;
}
nav.main-nav a:not(.btn) {
  position: relative;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 10px 0;
  transition: color var(--transition-fast);
}
nav.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}
nav.main-nav a:not(.btn):hover { color: var(--accent-dark); }
nav.main-nav a:not(.btn):hover::after { width: 100%; }
nav.main-nav a:not(.btn).active { color: var(--primary-dark); font-weight: 600; }
nav.main-nav a:not(.btn).active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 13px 26px;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-offset: 3px; }

.btn-accent {
  background: var(--white);
  color: #000000 !important;
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn-accent:hover {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--primary-dark) !important;
}
.btn-outline:hover {
  background: var(--bg-light);
  box-shadow: inset 0 0 0 1px var(--text-faint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
  color: var(--text);
  padding: var(--space-12) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26, 79, 186, 0.07), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}
.hero h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}
.hero p {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-light);
  margin-bottom: var(--space-6);
  max-width: 520px;
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border);
  padding: var(--space-7);
}
.hero-card h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: var(--space-5);
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
.hero-stats div { border-left: 2px solid var(--accent); padding-left: var(--space-3); }
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats div span { font-size: 0.78rem; color: var(--text-faint); }

/* Section */
.section { padding: var(--space-11) 0; }
.section-alt { background: var(--bg-light); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-9);
}
.eyebrow,
.section-head .eyebrow {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-head p { font-size: var(--text-md); line-height: 1.65; color: var(--text-light); }

.block h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-dark);
  margin: 0 0 var(--space-5);
}
.block p { line-height: 1.7; color: var(--text-light); margin-bottom: var(--space-4); }
.block p:last-child { margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-spaced { margin-bottom: var(--space-8); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--border);
  padding: var(--space-7);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card-photo {
  display: block;
  width: calc(100% + 2 * var(--space-7));
  max-width: none;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  margin: calc(-1 * var(--space-7)) calc(-1 * var(--space-7)) var(--space-5);
}

.section-photo {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--border);
  margin-bottom: var(--space-9);
}
@media (max-width: 720px) {
  .section-photo { aspect-ratio: 4 / 3; }
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: var(--space-6);
  width: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  transition: width var(--transition-fast);
}
.card:hover {
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border);
  transform: translateY(-3px);
}
.card:hover::before { width: 36px; }
.icon-badge,
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(26, 79, 186, 0.4);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  flex: none;
}
.card h3 { color: var(--primary-dark); font-weight: 600; font-size: var(--text-md); line-height: 1.3; margin-bottom: var(--space-3); }
.card p { color: var(--text-light); font-size: var(--text-sm); line-height: 1.65; }

/* Event / news list */
.list-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition-fast), border-color var(--transition-fast);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { padding-left: var(--space-3); border-color: var(--accent); }
.list-item-flush { padding: 0; border: 0; }
.list-item-flush:hover { padding-left: 0; border-color: transparent; }
.section-footer { text-align: center; margin-top: var(--space-8); }
.date-badge {
  flex: 0 0 68px;
  height: 68px;
  background: var(--bg-light);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  border-top: 2px solid var(--accent);
}
.date-badge strong { font-size: var(--text-lg); font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.date-badge span { font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; color: var(--text-faint); }
.list-item h4 { color: var(--primary-dark); font-weight: 600; line-height: 1.3; margin-bottom: var(--space-2); font-size: var(--text-md); }
.list-item p { color: var(--text-light); font-size: var(--text-sm); line-height: 1.65; }
.tag {
  display: inline-flex;
  align-items: center;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--accent-dark);
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  margin-bottom: var(--space-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Committee */
.member-card { text-align: center; }
.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-full);
  background: var(--bg-light);
  box-shadow: 0 0 0 1px var(--border), 0 0 0 5px var(--white), 0 0 0 6px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 0.78rem;
  margin: 0 auto var(--space-5);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.member-card:hover .member-photo { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--white), 0 0 0 6px var(--accent); }
.member-card h4 { font-family: var(--font-display); color: var(--primary-dark); font-weight: 600; font-size: var(--text-md); margin-bottom: 4px; }
.member-card span {
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.gallery-item:hover {
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border);
  transform: translateY(-3px);
}
.gallery-item:hover img { transform: scale(1.04); }

/* CTA */
.cta {
  position: relative;
  background: var(--bg-light);
  color: var(--text);
  text-align: center;
  padding: var(--space-10) 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta .container { position: relative; }
.cta h2 { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; color: var(--primary-dark); margin-bottom: var(--space-4); }
.cta p { font-size: var(--text-md); line-height: 1.65; color: var(--text-light); margin-bottom: var(--space-6); max-width: 560px; margin-left: auto; margin-right: auto; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-8);
}
.contact-intro h3 { color: var(--primary-dark); font-weight: 600; margin-bottom: var(--space-2); font-size: var(--text-lg); }
.contact-intro p { color: var(--text-light); margin-bottom: var(--space-5); font-size: var(--text-sm); }
.info-block { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); }
.info-block .icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1.5px rgba(26, 79, 186, 0.4);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.info-block h4 { font-family: var(--font-display); color: var(--primary-dark); font-weight: 600; font-size: var(--text-base); margin-bottom: 3px; }
.info-block p, .info-block a {
  color: var(--text-light);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: color var(--transition-fast);
}
.info-block a:hover { color: var(--accent-dark); }

form.contact-form { display: grid; gap: var(--space-4); }
.form-wide { max-width: 760px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  color: var(--text-light);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: var(--text-faint); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-faint);
  margin-top: var(--space-1);
}
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
  margin-top: var(--space-7);
  height: 260px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
footer.site-footer {
  background: var(--bg-light);
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: var(--space-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.footer-grid h4 {
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-grid ul li { margin-bottom: var(--space-3); font-size: var(--text-sm); line-height: 1.5; }
.footer-grid ul a { transition: color var(--transition-fast); }
.footer-grid ul a:hover { color: var(--accent-dark); }
.footer-brand h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--primary-dark); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.6; margin-top: var(--space-3); color: var(--text-light); }
.footer-bottom {
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* Page header (inner pages) */
.page-header {
  position: relative;
  background: var(--bg-light);
  color: var(--text);
  padding: var(--space-8) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header .container { position: relative; }
.page-header h2 { font-size: var(--text-xl); font-weight: 600; line-height: 1.2; color: var(--primary-dark); margin-bottom: var(--space-3); }
.breadcrumb { font-family: var(--font-body); font-size: 0.85rem; color: var(--text-faint); }
.breadcrumb a { color: var(--accent-dark); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--primary-dark); }

/* Responsive
   Three tiers: tablet (900px), phone (600px), small phone (420px).
   Each tier only overrides what actually needs to change at that width. */
@media (max-width: 900px) {
  .hero-stats { gap: var(--space-4) var(--space-4); }
  .hero { padding: var(--space-9) 0; }
  .hero .container { grid-template-columns: 1fr; }
  .section { padding: var(--space-9) 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: var(--text-2xl); }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    padding: var(--space-3) 20px var(--space-5);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-1); width: 100%; }
  nav.main-nav ul li { width: 100%; }
  nav.main-nav a:not(.btn) { display: block; padding: var(--space-3) 0; }
  nav.main-nav .btn { margin-top: var(--space-3); width: 100%; }
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero h2 { font-size: var(--text-xl); }
  .section-head { margin-bottom: var(--space-7); }
}

/* Phone: tighten spacing and type so content never feels cramped
   or oversized on a small screen. */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 66px; }
  .hero { padding: var(--space-8) 0; }
  .hero h2 { font-size: var(--text-xl); }
  .hero p { font-size: var(--text-base); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: var(--space-6); }
  .section { padding: var(--space-7) 0; }
  .section-head { margin-bottom: var(--space-6); }
  .section-head h2 { font-size: var(--text-xl); }
  .card { padding: var(--space-6); }
  .card-photo {
    width: calc(100% + 2 * var(--space-6));
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
  }
  .grid-3, .grid-2, .grid-4 { gap: var(--space-4); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .cta { padding: var(--space-8) 0; }
  .page-header { padding: var(--space-6) 0; }
  .contact-grid { gap: var(--space-6); }
}

/* Small phone: final tightening pass */
@media (max-width: 420px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 1.1rem; }
  .brand h1 span { display: none; }
  form.contact-form .btn { width: 100%; }
}
