/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  /* Colors */
  --primary: #0F52BA;
  --primary-dark: #0a3d8f;
  --accent: #D946A6;
  --accent-dark: #b8368a;
  --success: #10b981;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 5rem 1.5rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-medium);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-medium);
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 1rem auto;
  border-radius: 2px;
}

.section-sub {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 700px;
  margin: 0 auto 3rem;
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-sans);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: white;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.site-header .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 50px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain;
  display: block;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

.logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.logo::before {
  content: 'P';
}

.brand .name {
  display: flex;
  flex-direction: column;
}

.brand .title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-serif);
}

.brand .tag {
  font-size: 0.875rem;
  color: var(--text-light);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-medium);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  background: linear-gradient(135deg, #e8f0ff 0%, #f5e8f8 100%);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 82, 186, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.badge {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  animation: fadeInRight 0.8s ease;
}

.hero-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.hero-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* ===========================
   Why Section
   =========================== */
.why-section {
  background: var(--bg-white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.why-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.why-card ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.why-card li {
  margin-bottom: 0.75rem;
  color: var(--text-medium);
}

.why-card.callout {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
}

.why-card.callout h3,
.why-card.callout p {
  color: white;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: normal;
  opacity: 0.9;
}

/* ===========================
   Triangle Section
   =========================== */
.triangle-section {
  background: var(--bg-light);
}

.triangle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.triangle-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.triangle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.triangle-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.triangle-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  margin-top: 3rem;
  box-shadow: var(--shadow-xl);
}

.cta-banner h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===========================
   Products Section
   =========================== */
.featured-products {
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product {
  background: white;
  border: 2px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
}

.product-img {
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff, #dbeafe);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product:hover .product-img img {
  transform: scale(1.1);
}

.product-body {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.product-desc {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tag {
  background: var(--bg-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===========================
   Newsletter Section
   =========================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4rem 1.5rem;
}

.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.newsletter-card h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.newsletter-form button {
  white-space: nowrap;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.disclaimer small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
  }
  
  .main-nav.active ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav.active li {
    border-bottom: 1px solid var(--border);
  }
  
  .main-nav.active a {
    display: block;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }
  
  .site-header .container.nav {
    flex-wrap: wrap;
  }
  
  .brand-logo {
    height: 40px;
    max-width: 200px;
  }
  
  .cta {
    order: 3;
    width: 100%;
    text-align: center;
  }
  
  .cta .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }
  
  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-logo {
    max-width: 150px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .brand-logo {
    height: 35px;
    max-width: 180px;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero-card,
  .why-card,
  .triangle-card {
    padding: 1.5rem;
  }
  
  .cta-banner {
    padding: 2rem 1.5rem;
  }
  
  .footer-logo {
    max-width: 120px;
  }
  
  .site-header {
    padding: 0.75rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* ===========================
   Utility Classes
   =========================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }
