/* ==========================================================================
   PIGEON COOP HOSTING — 1-PAGE WEBSITE (built from the ONEPAGE master template)
   Client: Goitse Group (carpentry, electrical, ceiling installation)
   --------------------------------------------------------------------------
   DESIGN PLAN
   Colour   Sampled directly from the client's own logo: green #8DC73F,
            teal #56B4B3, orange #F39524, on the logo's pure black
            background. Rather than fight that with a light "paper"
            theme, the site goes dark to match — the logo, and several
            of the client's own project photos (dark feature walls,
            moody kitchens), already read as premium/dark, so this is
            the client's own material driving the choice, not an
            invented concept. Every button-on-accent pairing below was
            checked for contrast — dark ink text on the orange/green
            buttons, not white (white-on-orange fails WCAG badly).
   Type     Archivo (bold, architectural, confident) for headings — a
            nod to the logo's skyline/growth mark — paired with Public
            Sans for body copy.
   Layout   Same structural architecture as the Blue Shores master
            template (sticky header, hero, about, services, gallery,
            CTA, contact). Why Choose Us and Business Hours are left out
            here, since the client didn't supply that content and the
            template treats both as optional, not mandatory.
   ========================================================================== */

:root {
  /* ---- CONFIG: BRAND COLOUR PALETTE ------------------------------------ */
  --color-ink: #F2F1EE;          /* primary text (off-white, on dark bg) */
  --color-ink-soft: #ADB2B5;     /* secondary text */
  --color-paper: #16181A;        /* page background (near-black, from logo) */
  --color-surface: #1E2124;      /* card / panel background */
  --color-surface-alt: #1A1C1F;  /* alternate section background */
  --color-orange: #F39524;       /* primary brand colour (logo wordmark/arrow) */
  --color-orange-deep: #D97F15;  /* primary, hover/darker */
  --color-green: #8DC73F;        /* secondary brand colour (logo triangle) */
  --color-green-deep: #74A930;
  --color-teal: #56B4B3;         /* accent (logo skyline) */
  --color-teal-light: #6BC4C3;   /* accent, lightened for text-safe contrast */
  --color-border: #2B2E31;
  --color-focus: #6BC4C3;
  --btn-ink: #15171A;            /* dark text used ON orange/green buttons */

  /* ---- CONFIG: LIGHT-SECTION TEXT (for white/colour blocks on the
     otherwise-dark page — black stays the dominant background, these
     are used only inside .section--white and colour-block cards) ---- */
  --color-ink-on-light: #15171A;
  --color-ink-soft-on-light: #4A4E52;
  --color-white-border: #E7E4DC;

  /* ---- CONFIG: TYPOGRAPHY ----------------------------------------------- */
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  /* ---- CONFIG: LAYOUT ----------------------------------------------------*/
  --radius-md: 14px;
  --radius-lg: 24px;
  --container-w: 1180px;
  --shadow-soft: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 14px 30px -18px rgba(0, 0, 0, 0.55);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #fff;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }
.section--alt { background: var(--color-surface-alt); }

/* A deliberate white section — black stays the dominant colour overall
   (header, hero, services, gallery, contact, footer all stay dark);
   this is one contained break from it, not a theme switch. */
.section--white {
  background: #FFFFFF;
  color: var(--color-ink-on-light);
}
.section--white h1, .section--white h2, .section--white h3, .section--white h4 { color: var(--color-ink-on-light); }
.section--white p { color: var(--color-ink-soft-on-light); }
.section--white .section-head p { color: var(--color-ink-soft-on-light); }
.section--white .eyebrow { color: #9D6017; } /* darkened orange — #D97F15 only hit 3:1 on white, this hits 5.1:1 */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--color-ink-soft); font-size: 1.08rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--color-orange);
  color: var(--btn-ink);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 700;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Buttons — dark ink text on orange/green (verified contrast; white text on
   these light accent colours fails WCAG) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-orange);
  color: var(--btn-ink);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-orange-deep); }
.btn-secondary {
  background: transparent;
  border-color: var(--color-ink-soft);
  color: var(--color-ink);
}
.btn-secondary:hover { background: var(--color-surface); border-color: var(--color-ink); }
.btn-ghost {
  background: #fff;
  color: var(--btn-ink);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(22, 24, 26, 0.97);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #fff;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.brand-text--light { color: #fff; }
.brand-text--light small { color: var(--color-ink-soft); }
.footer-brand-link { text-decoration: none; margin-bottom: 14px; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-ink);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus-visible { background: var(--color-surface); color: var(--color-orange); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; color: #fff; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1C1F22 0%, var(--color-paper) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 76px;
  min-height: 640px;
}
.hero-copy .eyebrow { display: block; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { font-size: 1.2rem; color: var(--color-ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 9 / 10;
  animation: reveal-rise 900ms cubic-bezier(.22,1,.36,1) both;
  border: 1px solid var(--color-border);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
}

/* Single, restrained reveal-on-scroll used for section heads only */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

body.nav-locked { overflow: hidden; }

/* Diagonal divider — a quiet nod to the logo's upward arrow, used once */
.angle-divider {
  height: 64px;
  background: linear-gradient(180deg, transparent 49%, #FFFFFF 49%);
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
/* Green colour block — sits on the white About section; dark text, since
   white text on this light green fails contrast. */
.about-figure {
  background: var(--color-green);
  border: none;
  border-radius: var(--radius-lg);
  padding: 42px;
  color: var(--btn-ink);
}
.about-figure .stat { font-family: var(--font-display); font-size: 2.6rem; display: block; color: var(--btn-ink); font-weight: 800; }
.about-figure .stat-label { font-size: 0.98rem; color: #1F2E10; }
.about-figure .stat + .stat-label { margin-bottom: 26px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-orange); }
.service-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--color-surface-alt);
  color: var(--color-orange);
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 8px; color: #fff; }
.service-card p { color: var(--color-ink-soft); font-size: 0.98rem; margin-bottom: 0; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
  padding: 0;
  background: var(--color-surface);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(900px, 92vw); max-height: 82vh; border-radius: var(--radius-md); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 14px; font-size: 0.95rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
/* Solid orange colour block — a contained pop of brand colour on an
   otherwise dark page, not a full section background. Dark text:
   white-on-orange fails contrast here. */
.cta-band {
  background: var(--color-orange);
  border: none;
  color: var(--btn-ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  margin: 0 auto;
  max-width: var(--container-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--btn-ink); margin-bottom: 8px; }
.cta-band p { color: #3A2A10; margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-ghost { background: var(--btn-ink); color: #fff; }
.cta-band .btn-ghost:hover { background: #000; }
.cta-band .btn-secondary { border-color: var(--btn-ink); color: var(--btn-ink); }
.cta-band .btn-secondary:hover { background: var(--btn-ink); color: #fff; border-color: var(--btn-ink); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-orange);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; color: #fff; }
.contact-item a { text-decoration: none; color: var(--color-ink-soft); }
.contact-item a:hover { color: var(--color-orange); text-decoration: underline; }
.contact-item p { margin-bottom: 0; color: var(--color-ink-soft); }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { color: #fff; }
/* Honeypot — visually hidden from real visitors, still present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: var(--color-paper);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px rgba(107, 196, 195, 0.18);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.86rem;
  color: var(--color-ink-soft);
  margin-top: 4px;
  margin-bottom: 0;
}
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(141, 199, 63, 0.16); border-color: var(--color-green); color: var(--color-ink); }
.form-status.is-error { background: rgba(243, 149, 36, 0.14); border-color: var(--color-orange); color: var(--color-ink); }
.section--white .form-status.is-success { color: #1F3A0D; }
.section--white .form-status.is-error { color: #5C3400; }

/* Contact section on white: icon chips, labels, the form card and its
   inputs all need light-theme text/background — they default dark. */
.section--white .contact-item .icon {
  background: #F5F2EA;
  border-color: var(--color-white-border);
  color: #9D6017; /* darkened orange — #D97F15 only hit 2.7:1 on this chip */
}
.section--white .contact-item h3 { color: var(--color-ink-on-light); }
.section--white .contact-item a { color: var(--color-ink-soft-on-light); }
.section--white .contact-item a:hover { color: #9D6017; }
.section--white .contact-item p { color: var(--color-ink-soft-on-light); }

.section--white .contact-form {
  background: #FBFAF6;
  border: 1px solid var(--color-white-border);
}
.section--white .contact-form h3 { color: var(--color-ink-on-light); }
.section--white .form-field label { color: var(--color-ink-on-light); }
.section--white .form-field input,
.section--white .form-field textarea {
  background: #FFFFFF;
  border-color: var(--color-white-border);
  color: var(--color-ink-on-light);
}
.section--white .form-note { color: var(--color-ink-soft-on-light); }
.section--white .form-status { background: #F5F2EA; border-color: var(--color-white-border); color: var(--color-ink-on-light); }
.section--white .form-status.is-success { background: rgba(141, 199, 63, 0.16); border-color: var(--color-green); }
.section--white .form-status.is-error { background: rgba(243, 149, 36, 0.16); border-color: var(--color-orange); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0E0F10;
  color: var(--color-ink-soft);
  padding: 64px 0 28px;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--color-ink-soft); font-size: 0.95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--color-ink-soft); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #6B6F72;
}
.footer-bottom a { color: #6B6F72; text-decoration: underline; }

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 600;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.7);
  text-decoration: none;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about .container { grid-template-columns: 1fr; }
  .about-figure { order: 2; }
  .contact .container { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }

  .main-nav { position: fixed; inset: 82px 0 0 0; background: var(--color-paper); flex-direction: column; align-items: stretch; padding: 20px 24px; overflow-y: auto; transform: translateX(100%); transition: transform var(--transition); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; }
  .header-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; min-height: unset; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; max-height: 320px; }
  .hero-copy .lede { max-width: none; }

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

  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-band .container, .cta-actions { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }

  .site-header .container { gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-text { font-size: 0.98rem; white-space: nowrap; }
  .brand-text small { display: none; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { padding: 11px; border-radius: 50%; }
  .header-cta .btn-primary .btn-label { display: none; }
  .header-cta .btn-primary svg { width: 22px; height: 22px; }
}
