/* =====================================================================
   ALPHA GATOR HOLDINGS — LAYOUT & DESIGN
   Colors and fonts live in brand.css. This file uses them via var(--name).
   Written "mobile first": base styles are for phones, and the
   @media (min-width: ...) blocks add changes for bigger screens.
   ===================================================================== */

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-stretch: var(--display-width);
  font-weight: var(--display-weight);
  line-height: 0.95;
  text-transform: uppercase;
}

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 40px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-orange); color: var(--color-navy);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Small orange label above headings */
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-orange-dark);
}
.on-navy .kicker { color: var(--color-orange); }

/* Short thick orange bar under big headings */
.bar { width: 72px; height: 6px; background: var(--color-orange); margin: 20px 0; }

/* ---------- Gator-skin texture (used on navy sections) ----------
   assets/gator-skin.jpg is a gray photo of gator hide. "overlay" blends it into the navy,
   so the scale lines show as darker/lighter navy. Change --skin-strength (0 to 1) to make it fainter or stronger. */
.hide-texture { position: relative; isolation: isolate; --skin-strength: .9; }
.hide-texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../assets/gator-skin.jpg") center / cover;
  filter: contrast(2.2) brightness(1.15);  /* deepens the scale lines so they read on dark navy */
  mix-blend-mode: overlay;
  opacity: var(--skin-strength);
  /* fades in from left to right so the headline stays clear */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.7) 50%, #000);
          mask-image: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.7) 50%, #000);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-orange { background: var(--color-orange); color: var(--color-navy); }
.btn-orange:hover { background: var(--color-white); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); background: var(--color-navy); }
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-navy); color: var(--color-text-on-navy);
  border-bottom: 1px solid var(--color-navy-line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 58px; height: 34px; flex-shrink: 0; color: var(--color-white); }  /* logo is 1.7× wider than tall */
.brand-name { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 800; font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; font-size: .62rem; letter-spacing: .32em; color: var(--color-orange); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: transparent; border: 1px solid var(--color-navy-line); color: var(--color-white); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--color-navy); border-bottom: 1px solid var(--color-navy-line);
}
.site-nav ul { list-style: none; padding: 0 20px 16px; }
.site-nav a { display: block; padding: 14px 0; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--color-navy-line); }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; }
  .site-nav a { padding: 4px 0; border: 0; font-weight: 600; font-size: .95rem; color: var(--color-text-soft-navy); }
  .site-nav a:hover { color: var(--color-white); }
  .site-nav .nav-cta { padding: 9px 16px; background: var(--color-orange); color: var(--color-navy); }
  .site-nav .nav-cta:hover { background: var(--color-white); color: var(--color-navy); }
  .brand-name { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-navy); color: var(--color-text-on-navy);
  padding: 72px 0 80px;
}
.hero h1 { font-size: clamp(2.6rem, 11vw, 6.5rem); margin-top: 14px; }
.hero-lead { max-width: 34rem; font-size: 1.15rem; color: var(--color-text-soft-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .hero { padding: 120px 0 128px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section h2 { font-size: clamp(2.1rem, 7vw, 4rem); margin-top: 12px; }
.section-intro { max-width: 36rem; color: var(--color-text-soft); font-size: 1.1rem; }

/* ---------- Company tiles (bold, mixed sizes) ---------- */
.tiles {
  list-style: none; padding: 0; margin-top: 44px;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-vt-item, .tile-apps-item { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "vt vt gc gc"
      "vt vt tf web"
      "apps apps apps apps";
  }
  .tile-vt-item   { grid-area: vt; }
  .tile-gc-item   { grid-area: gc; }
  .tile-tf-item   { grid-area: tf; }
  .tile-web-item  { grid-area: web; }
  .tile-apps-item { grid-area: apps; }
}

.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 230px; height: 100%;
  padding: 26px;
  text-decoration: none;
  transition: transform .15s;
}
a.tile:hover { transform: translateY(-4px); }
.tile h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 8px; }
.tile p { margin-top: 10px; max-width: 30rem; }
.tile-go { margin-top: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tile-go svg { width: 18px; height: 18px; transition: transform .15s; }
a.tile:hover .tile-go svg { transform: translateX(4px); }

/* Each tile's colors */
.tile-vt   { background: var(--color-navy); color: var(--color-white); min-height: 340px; }
.tile-vt .kicker, .tile-vt .tile-go { color: var(--color-orange); }
.tile-vt p { color: var(--color-text-soft-navy); }
.tile-vt h3 { font-size: clamp(1.45rem, 3.4vw, 2.7rem); }

.tile-gc   { background: var(--color-orange); color: var(--color-navy); }
.tile-gc .kicker { color: var(--color-navy); }

.tile-tf   { background: var(--color-navy-2); color: var(--color-white); }
.tile-tf .kicker, .tile-tf .tile-go { color: var(--color-orange); }
.tile-tf p { color: var(--color-text-soft-navy); }

.tile-web  { background: var(--color-light); color: var(--color-navy); }
.tile-web .tile-go { color: var(--color-orange-dark); }
.tile-web p { color: var(--color-text-soft); }

.tile-apps {
  min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  background: var(--color-white); color: var(--color-navy);
  border: 2px dashed var(--color-navy);
}
.tile-apps h3 { margin-top: 4px; }
.tile-apps p { margin-top: 6px; color: var(--color-text-soft); }
.soon {
  padding: 8px 14px; background: var(--color-navy); color: var(--color-white);
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- About ---------- */
.about { background: var(--color-light); }
.about-grid { display: grid; gap: 40px; }
.about-statement { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 700; line-height: 1.25; max-width: 32rem; margin-top: 24px; }
.about-story { color: var(--color-text-soft); margin-top: 16px; max-width: 36rem; }

.facts { border-top: 3px solid var(--color-navy); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.facts dt { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-soft); align-self: center; }
.facts dd { font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 800; font-size: 1.15rem; text-align: right; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
}

/* ---------- Contact ---------- */
.contact { background: var(--color-navy-2); color: var(--color-white); }
.contact .section-intro { color: var(--color-text-soft-navy); margin-top: 16px; }
.contact-email {
  display: inline-block; margin-top: 24px;
  font-family: var(--font-display); font-stretch: var(--display-width); font-weight: 800;
  font-size: clamp(1rem, 4.4vw, 2.4rem); overflow-wrap: anywhere; line-height: 1.15;
  color: var(--color-white); text-decoration-color: var(--color-orange); text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.contact-email:hover { color: var(--color-orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy); color: var(--color-text-soft-navy); padding: 36px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--color-white); font-weight: 700; }
.footer-brand .brand-mark { width: 48px; height: 28px; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; }
.footer-meta a:hover { color: var(--color-white); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-meta { flex-direction: row; gap: 28px; }
}

/* ---------- 404 page ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 60px 20px; text-align: center; background: var(--color-navy); color: var(--color-white); }
.not-found h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); margin: 12px 0 16px; }
.not-found p { margin-bottom: 30px; font-size: 1.15rem; color: var(--color-text-soft-navy); }
.not-found .kicker { color: var(--color-orange); }

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
