/* ============================================
   SAVOYARD — Curadoria de Laticínios Extraordinários
   Design System & Global Styles
   ============================================ */

:root {
  /* Color Palette */
  --azul-savoyard: #000c46;
  --azul-savoyard-light: #0e2367;
  --champagne-gold: #c9a96e;
  --champagne-gold-light: #d4ba8a;
  --off-white: #f8f6f2;
  --off-white-dark: #edeae4;
  --text-dark: #2c2c2c;
  --text-light: #f8f6f2;
  --text-muted: #6b6b6b;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --gap: 2rem;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--champagne-gold);
  font-weight: 500;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(0, 12, 70, 0.97);
  padding: 0.8rem 0;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 55px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--champagne-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--champagne-gold);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--champagne-gold);
  color: var(--champagne-gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}

.whatsapp-btn:hover {
  background: var(--champagne-gold);
  color: var(--azul-savoyard);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 39, 68, 0.4) 0%,
    rgba(26, 39, 68, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content .subtitle {
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--champagne-gold);
  color: var(--azul-savoyard);
}

.btn-primary:hover {
  background: var(--champagne-gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--champagne-gold);
  color: var(--champagne-gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--champagne-gold);
  color: var(--azul-savoyard);
}

.btn-dark {
  background: var(--azul-savoyard);
  color: var(--text-light);
}

.btn-dark:hover {
  background: var(--azul-savoyard-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .subtitle {
  margin-bottom: 1rem;
}

.section-header h2 {
  color: var(--azul-savoyard);
}

.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

/* Dark Section */
.section-dark {
  background: var(--azul-savoyard);
  color: var(--text-light);
}

.section-dark .section-header h2 {
  color: var(--text-light);
}

.section-dark .section-header p {
  color: rgba(248, 246, 242, 0.7);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: center;
}

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

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

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  padding: 2.5rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 39, 68, 0.1);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--azul-savoyard);
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   PAGE HERO (Internal Pages)
   ============================================ */

.page-hero {
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  background: var(--azul-savoyard);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,12,70,0.3) 0%, rgba(0,12,70,0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}

.page-hero-content .subtitle {
  margin-bottom: 1rem;
}

.page-hero-content h1 {
  color: var(--text-light);
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.content-block h3 {
  color: var(--azul-savoyard);
  margin: 2.5rem 0 1rem;
}

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--champagne-gold);
  margin: 2rem auto;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--off-white-dark);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--champagne-gold);
}

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

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--azul-savoyard);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 40px !important;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer h5 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: var(--champagne-gold);
}

.footer-links a {
  display: block;
  color: rgba(248, 246, 242, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(248, 246, 242, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(248, 246, 242, 0.5);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: rgba(248, 246, 242, 0.7);
}

.social-links a:hover {
  color: var(--champagne-gold);
}

/* ============================================
   PRODUCTS (Manteigas)
   ============================================ */

.product-card {
  background: white;
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 39, 68, 0.08);
}

.product-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.product-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--azul-savoyard);
  margin-bottom: 0.5rem;
}

.product-card .product-application {
  font-size: 0.85rem;
  color: var(--champagne-gold);
  font-style: italic;
}

/* ============================================
   BLOG (Reflexões à Mesa)
   ============================================ */

.blog-card {
  background: white;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 39, 68, 0.08);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-content {
  padding: 2rem;
}

.blog-card .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--champagne-gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.blog-card h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--azul-savoyard);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-card .read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--champagne-gold);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--azul-savoyard);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .whatsapp-btn {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .btn {
    width: 100%;
    text-align: center;
  }
}
