/* ============================================================
   Weinholtz Glass Co. — Design System & Styles
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --red-primary: #CC0000;
  --red-dark: #A00000;
  --red-light: #E63333;
  --red-glow: rgba(204, 0, 0, 0.3);
  --black: #111111;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-red: 0 8px 30px rgba(204, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ── Section Titles ── */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-base);
}

.header.scrolled .container {
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  transition: height var(--transition-base);
  mix-blend-mode: multiply;
}

.header.scrolled .logo img {
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--red-primary);
  background: rgba(204, 0, 0, 0.06);
}

.nav-links a.nav-cta {
  background: var(--red-primary);
  color: var(--white);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-red);
  transition: var(--transition-base);
}

.nav-links a.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 35px rgba(204, 0, 0, 0.35);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  background: none;
  border: none;
}

.hamburger:hover {
  background: var(--gray-100);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: 160px 0 120px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black-soft) 50%, #1c0000 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(204, 0, 0, 0.15);
  color: var(--red-light);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(204, 0, 0, 0.2);
  letter-spacing: 0.03em;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--red-primary);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(204, 0, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-display {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
}

.hero-logo-display:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
  border-color: rgba(204, 0, 0, 0.2);
}

.hero-logo-display img {
  max-width: 340px;
  width: 100%;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--section-padding);
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.about-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.about-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  box-shadow: var(--shadow-red);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.services-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.products-wide {
  grid-column: span 2;
}

.products-wide>h3 {
  justify-content: center;
}

.products-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.services-column h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.services-column h3 .icon-circle {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-red);
  flex-shrink: 0;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-base);
  font-size: 0.975rem;
  color: var(--gray-700);
}

.service-item:hover {
  transform: translateX(6px);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-sm);
  color: var(--gray-900);
}

.service-item .check {
  width: 24px;
  height: 24px;
  background: rgba(204, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red-primary);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info>p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-red);
}

.contact-detail-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-detail-text p {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-detail-text a {
  color: var(--red-primary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.contact-detail-text a:hover {
  color: var(--red-dark);
}

/* Contact Form */
.contact-form-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.contact-form-card>p {
  font-size: 0.925rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--red-primary);
}

.form-group .error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--red-primary);
  margin-top: 4px;
}

.form-group .error-msg.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--red-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-red);
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 35px rgba(204, 0, 0, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Form Feedback Toast */
.form-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-base);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.form-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.form-toast.success {
  background: #16a34a;
}

.form-toast.error {
  background: var(--red-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  display: block;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--red-light);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 32px 40px;
    gap: 4px;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a.nav-cta {
    text-align: center;
    margin-top: 12px;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
  }

  .mobile-overlay.show {
    display: block;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-logo-display {
    padding: 32px;
  }

  .hero-logo-display img {
    max-width: 250px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-list.two-col {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .form-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .contact-form-card {
    padding: 28px 20px;
  }
}