/* ========================================
   JuiceProof — Main Stylesheet
   Unique Palette: Bordeaux / Saffron / Slate
   ======================================== */

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

:root {
  --clr-primary: #7B1F3A;
  --clr-primary-dark: #5C142A;
  --clr-primary-light: #9E3D5C;
  --clr-accent: #D4871A;
  --clr-accent-dark: #A8670E;
  --clr-accent-light: #E8AA4A;
  --clr-secondary: #3E6487;
  --clr-secondary-dark: #2C4A65;
  --clr-secondary-light: #5A85A8;
  --clr-bg: #FDF9F5;
  --clr-surface: #F4EDE4;
  --clr-surface-dark: #EAE0D5;
  --clr-text: #1C1512;
  --clr-text-medium: #4A3B32;
  --clr-text-light: #8C7A6E;
  --clr-white: #FFFFFF;
  --clr-border: #D9CEC2;
  --clr-success: #2D8B4E;
  --clr-error: #C44550;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--clr-accent-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clr-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--clr-text);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

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

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--clr-primary); color: var(--clr-white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--clr-white);
  border-bottom: 2px solid var(--clr-border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--clr-accent); }

.nav-links { display: flex; list-style: none; gap: 8px; }

.nav-links a {
  display: block; padding: 8px 18px;
  font-weight: 600; font-size: 0.95rem;
  color: var(--clr-text-medium); border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--clr-surface);
  color: var(--clr-primary);
}

.menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 6px;
}

.menu-btn span {
  display: block; width: 26px; height: 3px;
  background: var(--clr-text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 60%, #1A0A10 100%);
  color: var(--clr-white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(212,135,26,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(62,100,135,0.15) 0%, transparent 50%);
}

.hero .container { position: relative; z-index: 1; }

.hero-content { max-width: 640px; }

.hero h1 {
  font-size: 3.2rem; color: var(--clr-white);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--clr-accent-light); }

.hero p {
  font-size: 1.15rem; color: #E0D4C8;
  margin-bottom: 32px; line-height: 1.8;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 32px;
  font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-text);
  box-shadow: 0 4px 16px rgba(212,135,26,0.35);
}
.btn-primary:hover { background: var(--clr-accent-dark); color: var(--clr-text); }

.btn-outline {
  background: transparent; color: var(--clr-white);
  border: 2px solid var(--clr-white);
}
.btn-outline:hover { background: var(--clr-white); color: var(--clr-primary); }

.hero-visual {
  position: absolute; right: -40px; top: 20px;
  width: 550px; height: 550px;
}

.hero-shape {
  width: 100%; height: 100%;
  border: 3px solid rgba(255,255,255,0.12);
  border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%;
  animation: morphShape 12s ease-in-out infinite;
  position: relative;
}

.hero-shape::after {
  content: '';
  position: absolute; inset: 30px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 40% 60% 30% 50% / 50% 40% 60% 30%;
  animation: morphShape 10s ease-in-out infinite reverse;
}

@keyframes morphShape {
  0%, 100% { border-radius: 50% 30% 60% 40% / 40% 50% 30% 60%; }
  25% { border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 60% 40% 50% 30% / 30% 60% 40% 70%; }
  75% { border-radius: 30% 70% 40% 60% / 70% 50% 60% 30%; }
}

/* ---------- SECTION HEADINGS ---------- */
.section-label {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--clr-accent-dark); text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem; color: var(--clr-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem; color: var(--clr-text-light);
  max-width: 600px; margin-bottom: 0;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 88px 0;
  background: var(--clr-white);
}

.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-subtitle { margin: 0 auto; }

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

.service-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }

.service-card p { color: var(--clr-text-medium); font-size: 0.95rem; line-height: 1.7; }

/* ---------- ABOUT ---------- */
.about {
  padding: 88px 0;
  background: var(--clr-surface);
}

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

.about-image {
  position: relative;
}

.about-image-box {
  width: 100%; height: 380px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-image-box::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 22px);
}

.about-image-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 140px; height: 140px;
  background: var(--clr-accent);
  border-radius: var(--radius-lg);
  z-index: 2;
}

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

.stat-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem; font-weight: 700;
  color: var(--clr-primary);
}

.stat-label { font-size: 0.85rem; color: var(--clr-text-light); margin-top: 4px; }

/* ---------- FEATURES ---------- */
.features {
  padding: 88px 0;
  background: var(--clr-bg);
}

.features-header { text-align: center; margin-bottom: 56px; }
.features-header .section-subtitle { margin: 0 auto; }

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

.feature-item {
  display: flex; gap: 18px; align-items: flex-start;
}

.feature-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--clr-surface-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--clr-primary); font-size: 1rem;
}

.feature-item h4 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-item p { color: var(--clr-text-medium); font-size: 0.9rem; line-height: 1.6; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--clr-secondary-dark) 0%, var(--clr-secondary) 50%, var(--clr-secondary-light) 100%);
  color: var(--clr-white);
  text-align: center;
}

.cta-banner h2 { color: var(--clr-white); margin-bottom: 12px; font-size: 2rem; }

.cta-banner p { color: #C8D8E8; font-size: 1.05rem; margin-bottom: 28px; }

.cta-banner .btn-primary { background: var(--clr-white); color: var(--clr-secondary-dark); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.cta-banner .btn-primary:hover { background: var(--clr-surface); color: var(--clr-secondary-dark); }

/* ---------- CONTACT ---------- */
.contact {
  padding: 88px 0;
  background: var(--clr-white);
}

.contact-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--clr-text-medium); margin-bottom: 28px; }

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

.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--clr-surface); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--clr-primary);
}

.contact-detail h4 { font-size: 0.95rem; color: var(--clr-text-light); margin-bottom: 2px; }
.contact-detail p { font-weight: 600; color: var(--clr-text); }

.contact-form {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

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

.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--clr-text-medium); margin-bottom: 6px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(123,31,58,0.12);
}

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

.form-success {
  display: none; color: var(--clr-success); font-weight: 600;
  text-align: center; padding: 16px; font-size: 1rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--clr-text);
  color: #C0B4A8;
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo { color: var(--clr-white); }
.footer-brand .logo span { color: var(--clr-accent-light); }
.footer-brand p { margin-top: 10px; font-size: 0.9rem; color: #958A80; }

.footer-links h4 {
  color: var(--clr-white); font-family: var(--font-body);
  font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: #B0A498; font-size: 0.9rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--clr-accent-light); }

.footer-bottom {
  max-width: var(--max-width); margin: 32px auto 0; padding: 0 24px;
  padding-top: 24px; border-top: 1px solid #3D302A;
  font-size: 0.82rem; color: #7A6C62; text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-visual { width: 380px; height: 380px; right: -20px; top: 40px; }
  .about-inner { gap: 40px; }
  .contact-inner { gap: 32px; }
}

@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--clr-white); flex-direction: column;
    padding: 8px 16px 20px;
    border-bottom: 2px solid var(--clr-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }

  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-visual { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image-box { height: 260px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
}
