/* Jake Griffiths Construction — mobile-first, navy/charcoal + warm accent */

:root {
  --navy: #0f1c2e;
  --navy-mid: #1a2d47;
  --charcoal: #2a3038;
  --slate: #4a5563;
  --muted: #6b7280;
  --cream: #f7f4ef;
  --cream-dark: #ebe6de;
  --white: #ffffff;
  --accent: #c4783a;
  --accent-hover: #a8632e;
  --accent-soft: #f3e6d8;
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;
  --border: #d9d3c9;
  --shadow: 0 4px 20px rgba(15, 28, 46, 0.12);
  --radius: 10px;
  --header-h: 4rem;
  --sticky-cta-h: 4.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 68rem;
  --narrow: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  padding-bottom: var(--sticky-cta-h);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 28, 46, 0.97);
  color: var(--white);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.8rem;
}

.logo-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.logo-text span {
  opacity: 0.75;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.site-nav.is-open {
  max-height: 24rem;
  box-shadow: var(--shadow);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
}

.header-cta {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
  color: var(--white);
}

/* Hero */
.hero {
  background:
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #243a56 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-trust li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--slate);
  max-width: 40rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--cream-dark);
  border-radius: 4px;
}

/* Cards / services */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 1px 0 rgba(15, 28, 46, 0.04);
}

.section-alt .card {
  background: var(--cream);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

/* Areas */
.areas-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.areas-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.areas-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--cream-dark);
}

.placeholder-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--cream-dark) 0%, #ddd6cb 50%, var(--cream-dark) 100%);
  border: 2px dashed var(--border);
  display: grid;
  place-items: center;
}

.placeholder-frame::after {
  content: "Photo soon";
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Why */
.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.why-grid li {
  padding: 1.25rem;
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.why-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.why-grid p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

.builders-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
}

.builders-cta .btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}

.builders-cta .btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Contact */
.contact-section {
  background: var(--navy);
  color: var(--white);
}

.contact-section .section-label {
  color: var(--accent);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .section-intro {
  color: rgba(255, 255, 255, 0.85);
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.35rem 1.25rem;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  background: #223652;
  color: var(--white);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

.contact-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0a1420;
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0));
  background: rgba(15, 28, 46, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-cta .btn {
  width: 100%;
  min-height: 2.9rem;
}

/* Desktop */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
    border-radius: 6px;
  }

  .header-cta {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 2.4rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-trust {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
  }

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

  .areas-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1rem 2rem;
    align-items: start;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-nav a {
    padding: 0.45rem 0.7rem;
  }
}
