/* ==========================================================================
   Goodwill General Trading — style.css
   Theme: deep navy · slate gray · gold accent
   Fonts: Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ========================================================================== */

/* ---------- Theme tokens ---------- */
:root {
  --navy-900: #0a1930;
  --navy-800: #102743;
  --navy-700: #16345a;
  --slate-600: #51617a;
  --slate-400: #8a97ab;
  --slate-200: #dbe1ea;
  --gold: #c9a544;
  --gold-strong: #b28f2f;
  --gold-soft: rgba(201, 165, 68, 0.14);
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #e3e8ef;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --nav-h: 122px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(10, 25, 48, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 25, 48, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Manifest-style eyebrow labels (signature) ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.eyebrow-light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold:hover {
  background: var(--gold-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(178, 143, 47, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-nav { padding: 0.55rem 1.3rem; font-size: 0.9rem; }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 25, 48, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 25, 48, 0.97);
  border-bottom-color: var(--line-dark);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  height: 102px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-200);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  background:
    radial-gradient(1100px 520px at 78% -10%, var(--navy-700), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  overflow: hidden;
}

.hero .container {
  margin-inline: 0;
  padding-left: 108px;
}

.hero-bg {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 1;
}

.hero-arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.hero-arcs .arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.2;
}

.hero-arcs .arc-route {
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-dasharray: 6 10;
  opacity: 0.65;
  animation: route-flow 14s linear infinite;
}

.hero-arcs .port {
  fill: var(--gold);
  opacity: 0.75;
}

/* Inner pages keep the plain arcs only — no gold route line or dots */
.page-head .arc-route,
.page-head .port { display: none; }

@keyframes route-flow {
  to { stroke-dashoffset: -320; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero h1 { color: var(--white); }

.gold-underline {
  color: var(--gold);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 96%;
}

.hero-sub {
  color: var(--slate-400);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 1.4rem 0 2.3rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Inner page header ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) 0 4.25rem;
  background:
    radial-gradient(900px 420px at 85% -20%, var(--navy-700), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  overflow: hidden;
}

.page-head .container { position: relative; z-index: 2; }

.page-head h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  max-width: 820px;
}

.page-sub {
  color: var(--slate-400);
  font-size: 1.12rem;
  max-width: 640px;
  margin-top: 1.1rem;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }

.section-sub {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-dark {
  background:
    radial-gradient(900px 400px at 10% 0%, var(--navy-700), transparent 55%),
    var(--navy-900);
}
.section-dark h2 { color: var(--white); }
.section-dark .section-sub { color: var(--slate-400); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.about-grid p + p { margin-top: 1rem; }

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 165, 68, 0.35);
  border-radius: var(--radius);
  pointer-events: none;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about-media:hover img { transform: scale(1.04); }

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.value-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  display: inline-block;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
}

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img { transform: scale(1.07); }

.card-body { padding: 1.6rem; }

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 165, 68, 0.45);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card h3 { color: var(--white); }
.card p { color: var(--slate-400); font-size: 0.97rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--navy-900);
  border: 1px solid rgba(201, 165, 68, 0.4);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: -44px 0 1.1rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(10, 25, 48, 0.45);
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem 1.6rem;
  margin-top: 2.6rem;
}

.why-item {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  transition: border-color 0.3s var(--ease);
}
.why-item:hover { border-top-color: var(--gold); }

.why-item p { font-size: 0.97rem; }

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease);
}
.why-item:hover .why-icon { transform: translateY(-3px); }
.why-icon svg { width: 24px; height: 24px; }

/* ---------- Contact ---------- */
.section-contact { background: var(--white); border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 2.4rem;
  align-items: start;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Honeypot — hidden from people, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--gold-strong);
  min-height: 1.3em;
}
.form-status.error { color: #b3261e; }

.contact-side {
  display: grid;
  gap: 1.6rem;
  padding-top: 0.4rem;
}

.side-item a { color: var(--navy-900); font-weight: 600; transition: color 0.2s var(--ease); }
.side-item a:hover { color: var(--gold-strong); }
.side-item p { color: var(--slate-600); }

.side-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.3rem;
}

.side-hours { border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  padding: 1.8rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--slate-400);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-links a { transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 861px) {
  .about-grid-media { align-items: center; }
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 84px; }
  .brand-logo { height: 68px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.6rem 1.25rem 1.25rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.02rem;
  }
  .nav-link::after { display: none; }

  .btn-nav { margin-top: 1rem; text-align: center; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .values-row { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }

  /* Hero: drop the desktop 108px indent, use the normal gutter */
  .hero {
    min-height: 100vh;   /* fallback */
    min-height: 100svh;  /* real visible height, URL bar included */
    padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
  }
  .hero .container {
    margin-inline: auto;
    padding-left: 0;
  }
  .hero-sub { font-size: 1.08rem; margin: 1.2rem 0 2rem; }
  .page-head { padding: calc(var(--nav-h) + 3rem) 0 3rem; }
  .page-sub { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  :root { --nav-h: 96px; }

  .cards-grid,
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand-logo { height: 76px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero h1 br { display: none; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; }
  .hero .eyebrow::before { width: 22px; }
  .hero-sub { font-size: 1.02rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-arcs .arc-route { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Floating contact (WhatsApp / Call) ---------- */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
}

.fab-btn,
.fab-toggle { pointer-events: auto; }

.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.fab-btn svg { width: 27px; height: 27px; fill: currentColor; }
.fab-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fab-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Adapts to the section behind it: navy over light, white over dark */
.fab-btn,
.fab-toggle {
  background: var(--navy-800);
  color: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fab.on-dark .fab-btn,
.fab.on-dark .fab-toggle {
  background: var(--white);
  color: var(--navy-900);
}

/* Desktop: WhatsApp only */
.fab-toggle,
.fab-call { display: none; }

/* Mobile: one button that opens WhatsApp + Call */
@media (max-width: 860px) {
  .fab-toggle {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
  }
  .fab-toggle svg { width: 26px; height: 26px; fill: currentColor; }
  .fab-toggle:focus-visible { outline: 2px solid var(--navy-900); outline-offset: 3px; }

  .fab-call { display: grid; place-items: center; }
  .fab-btn { width: 50px; height: 50px; }
  .fab-btn svg { width: 25px; height: 25px; }

  .fab-actions {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.7rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.85);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .fab.open .fab-actions {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .fab-icon-close { display: none; }
  .fab.open .fab-icon-open { display: none; }
  .fab.open .fab-icon-close { display: block; }
}