/* ─────────────────────────────────────────────
   Gator Plastics — Brand Styles
   Palette: Plum (#5B2C6F) + Amber (#F59E0B)
   Fonts: Playfair Display (headlines) + Inter (body)
───────────────────────────────────────────── */

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

:root {
  --plum: #5B2C6F;
  --plum-dark: #3D1F4D;
  --plum-light: #7D3C99;
  --plum-50: #F5F0F7;
  --plum-100: #EDE4F0;
  --amber: #F59E0B;
  --amber-light: #FCD34D;
  --amber-dark: #D97706;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--plum);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 200;
  font-size: 14px;
}
.skip-link:focus {
  top: 16px;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease-out);
}
.header.scrolled {
  box-shadow: 0 1px 20px rgba(91, 44, 111, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--plum);
}
.logo:hover { color: var(--plum-dark); }

.logo-text-light { color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--plum);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.3s var(--ease-out);
}
.nav a:hover { color: var(--plum); }
.nav a:hover::after { width: 100%; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-amber {
  background: var(--amber);
  color: var(--plum-dark);
  border-color: var(--amber);
}
.btn-amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--plum);
  background: var(--plum-50);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--plum);
  border-color: var(--white);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────
   SECTION HELPERS
───────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--amber);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--white);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.hero-title .accent {
  color: var(--plum);
  font-style: italic;
}

.hero-desc {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(91, 44, 111, 0.08);
}
.hero-card--main {
  width: 100%;
  position: relative;
}
.hero-card--main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(91, 44, 111, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.card-overlay-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}

.hero-card--stat,
.hero-card--accent {
  position: absolute;
  background: var(--white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero-card--stat {
  bottom: -30px;
  left: -30px;
  box-shadow: 0 8px 40px rgba(91, 44, 111, 0.12);
}
.hero-card--accent {
  top: -20px;
  right: -20px;
  box-shadow: 0 8px 40px rgba(245, 158, 11, 0.15);
  background: var(--white);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1;
}
.hero-card--accent .stat-number {
  color: var(--amber-dark);
}
.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Hero divider */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.hero-divider .line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.hero-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--amber);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   PRODUCTS
───────────────────────────────────────────── */
.products {
  padding: 120px 0;
  background: var(--white);
}

.section-header {
  margin-bottom: 64px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  group: product;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.35s var(--ease-out);
  background: var(--white);
}
.product-card:hover {
  border-color: var(--plum-light);
  box-shadow: 0 12px 40px rgba(91, 44, 111, 0.1);
  transform: translateY(-4px);
}

.product-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-body {
  padding: 24px;
}
.product-body h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.product-body p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services {
  padding: 120px 0;
  background: var(--plum-50);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.services-content .section-desc {
  margin-bottom: 48px;
}

.services-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
  padding-top: 2px;
  flex-shrink: 0;
  min-width: 24px;
}

.service-item h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.service-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* Services visual */
.services-visual {
  position: relative;
  min-height: 540px;
}

.services-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(91, 44, 111, 0.1);
}
.services-img--1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
}
.services-img--1 img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}
.services-img--2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  border: 4px solid var(--plum-50);
}
.services-img--2 img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ─────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 600px;
}

.about-img-main {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(91, 44, 111, 0.1);
}
.about-img-main img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(91, 44, 111, 0.15);
  border: 4px solid var(--white);
}
.about-img-float img {
  width: 400px;
  height: 280px;
  object-fit: cover;
}

.about-content .section-desc {
  margin-bottom: 28px;
}

.about-text {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.about-stat {
  text-align: center;
  flex: 1;
}
.about-stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ─────────────────────────────────────────────
   CTA
───────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--gray-50);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-desc {
  margin-bottom: 40px;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-detail span,
.contact-detail a {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.5;
}
.contact-detail a:hover {
  color: var(--plum);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 40px rgba(91, 44, 111, 0.06);
  border: 1px solid var(--gray-100);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.08);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--plum-50);
  border: 1px solid var(--plum-100);
  border-radius: 6px;
  font-size: 14px;
  color: var(--plum);
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}
.footer-contact a {
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ─────────────────────────────────────────────
   MOBILE NAV
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.35s var(--ease-out);
    pointer-events: none;
    z-index: 99;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .nav a { font-size: 16px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .services-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-visual { min-height: 360px; order: -1; }
  .hero-card--stat { bottom: -20px; left: 16px; }
  .hero-card--accent { top: -16px; right: 16px; }
  .hero-card--main img { height: 320px; }
  .hero-divider { margin-top: 48px; }

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

  .services-visual { min-height: 360px; order: -1; }
  .services-img--1 img { height: 360px; }
  .services-img--2 img { height: 200px; }

  .about-visual { min-height: 400px; }
  .about-img-main img { height: 450px; }
  .about-img-float { width: 240px; right: -16px; bottom: -24px; }
  .about-img-float img { width: 240px; height: 170px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 24px; }
  .about-stats { flex-direction: column; gap: 20px; }
  .about-stat-divider { width: 40px; height: 1px; }
}

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

/* ─────────────────────────────────────────────
   SCROLL REVEAL (progressive enhancement)
───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}
