/* ============================================
   Sunstate Fasteners — style.css
   Light theme, modern one-page static site
   ============================================ */

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

:root {
  --sf-white: #ffffff;
  --sf-offwhite: #f8f9fa;
  --sf-light-grey: #f0f1f3;
  --sf-border: #e2e4e8;
  --sf-mid: #6b7280;
  --sf-dark: #1f2937;
  --sf-darker: #111827;
  --sf-accent: #c0392b;
  --sf-accent-hover: #a93226;
  --sf-accent-light: #fef2f2;
  --max-width: 1200px;
  --section-pad: 80px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--sf-dark);
  background: var(--sf-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sf-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--sf-accent-hover);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sf-border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sf-darker);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--sf-mid);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--sf-darker);
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--sf-accent);
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--sf-accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sf-darker);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Highlight Bar --- */
.highlight-bar {
  background: var(--sf-darker);
  color: #fff;
  padding: 12px 0;
  margin-top: 72px;
}

.highlight-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.highlight-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--sf-accent);
  flex-shrink: 0;
}

.highlight-item a {
  color: #fff;
}

.highlight-item a:hover {
  color: var(--sf-accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
  filter: brightness(0.25);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-logo {
  width: 100px;
  height: auto;
  margin: 0 auto 20px;
  filter: brightness(10);
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  color: #fff;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-products {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 48px;
  background: var(--sf-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--sf-accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.4);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--sf-white);
  border-bottom: 1px solid var(--sf-border);
  padding: 36px 0;
}

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

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--sf-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sf-darker);
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--sf-mid);
  line-height: 1.4;
}

/* --- Section Base --- */
.section {
  padding: var(--section-pad) 0;
}

.section-white {
  background: var(--sf-white);
}

.section-light {
  background: var(--sf-offwhite);
}

.section-dark {
  background: var(--sf-darker);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-dark .section-header h2 {
  color: #fff;
}

.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--sf-accent);
  margin: 0 auto 20px;
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--sf-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.6);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--sf-darker);
}

.about-text p {
  color: var(--sf-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--sf-offwhite);
  border-radius: var(--radius);
  border: 1px solid var(--sf-border);
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--sf-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sf-mid);
  font-weight: 500;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Industries --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  aspect-ratio: 4/3;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.industry-overlay h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 4px;
}

.industry-overlay p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--sf-offwhite);
}

.product-image img {
  max-height: 100px;
  max-width: 100px;
  object-fit: contain;
}

.product-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 16px 4px;
  text-align: center;
  color: var(--sf-darker);
}

.product-card p {
  font-size: 0.78rem;
  color: var(--sf-mid);
  padding: 0 16px 14px;
  text-align: center;
  line-height: 1.5;
}

/* --- Products Expand --- */
.product-extra {
  display: none;
}

.products-grid.expanded .product-extra {
  display: block;
}

.products-expand-wrap {
  text-align: center;
  margin-top: 32px;
}

.products-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: transparent;
  color: var(--sf-accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--sf-accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.products-expand:hover {
  background: var(--sf-accent);
  color: #fff;
}

.products-expand svg {
  transition: transform 0.3s;
}

.products-expand[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--sf-accent);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 20px;
  line-height: 1;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--sf-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sf-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sf-darker);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--sf-mid);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

/* --- Brands --- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.brand-item {
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.brand-item img {
  max-height: 45px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--sf-darker);
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sf-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--sf-accent);
}

.contact-detail h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sf-darker);
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--sf-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-detail a {
  color: var(--sf-mid);
}

.contact-detail a:hover {
  color: var(--sf-accent);
}

.contact-form {
  background: var(--sf-offwhite);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--sf-border);
}

.contact-form h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--sf-darker);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sf-mid);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--sf-white);
  border: 1px solid var(--sf-border);
  border-radius: 4px;
  color: var(--sf-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

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

.form-submit {
  display: inline-block;
  padding: 14px 40px;
  background: var(--sf-accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.form-submit:hover {
  background: var(--sf-accent-hover);
}

/* --- Map --- */
.map-section {
  width: 100%;
  height: 350px;
  border: none;
  filter: saturate(0.8);
}

/* --- Footer --- */
.footer {
  background: var(--sf-darker);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(10);
}

.footer-logo span {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--sf-border);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .highlight-bar-inner {
    gap: 16px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-logo {
    width: 70px;
  }

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

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 250px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

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

  .testimonials-grid .testimonial-card:last-child {
    max-width: 100%;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .trust-item {
    justify-content: center;
  }

  .highlight-bar-inner {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .industry-overlay {
    padding: 16px;
  }

  .industry-overlay h3 {
    font-size: 0.95rem;
  }

  .industry-overlay p {
    display: none;
  }

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

  .product-image {
    height: 100px;
    padding: 16px;
  }

  .product-image img {
    max-height: 70px;
    max-width: 70px;
  }

  .product-card h3 {
    font-size: 0.82rem;
    padding: 10px;
  }

  .product-card p {
    display: none;
  }

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

  .contact-form {
    padding: 24px;
  }
}
