/* Base layout & components shared by both themes.
   Visual identity (colors, fonts) comes entirely from theme-*.css custom properties. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--surface-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav > a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav > a:hover, .site-nav > a.active { color: var(--text); border-color: var(--accent); }
.nav-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta-icon:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted); padding: 6px 0;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 260px;
  box-shadow: var(--shadow);
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 6px; font-size: 0.9rem; color: var(--text-muted); }
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--text); }

/* Hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-inner {
  display: flex; align-items: center; gap: 48px;
}
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-media { flex: 1 1 380px; min-width: 0; max-width: 460px; margin: 0 auto; }
.hero-media img { width: 100%; height: auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--text); margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; margin-bottom: 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { padding: 64px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .hero-sub { max-width: 700px; margin: 0 auto; }

/* Section heading */
.section-heading { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 36px; }

/* Stats */
.stats-section { padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 24px 12px; }
.stat-value { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Categories */
.categories-section { padding: 60px 0; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 24px; }
.category-card h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--accent); }
.category-card li { padding: 4px 0; color: var(--text-muted); font-size: 0.92rem; }

/* Why choose us */
.why-section, .values-section { padding: 60px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 24px; }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--accent-contrast);
  margin-bottom: 14px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 0.92rem; }

/* Process */
.process-section { padding: 60px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-card { text-align: center; padding: 20px; }
.process-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 700; margin-bottom: 14px;
}
.process-card h3 { font-size: 1rem; margin-bottom: 6px; }
.process-card p { font-size: 0.9rem; margin: 0; }

/* Testimonials */
.testimonials-section { padding: 60px 0; }
.testimonials-header { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 36px; }
.testimonials-header .section-heading { margin-bottom: 0; }
.review-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--surface-border); border-radius: 999px;
  padding: 6px 16px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.review-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 24px; margin: 0;
}
.testimonial-card p { font-style: italic; color: var(--text); margin-bottom: 14px; }
.testimonial-card footer { display: flex; flex-direction: column; font-size: 0.85rem; }
.testimonial-card footer strong { color: var(--accent); }
.testimonial-card footer span { color: var(--text-muted); }

/* FAQ */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 12px 0 0; }

/* Topics */
.topics-section { padding: 60px 0; }
.topics-list { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.topics-list li {
  padding-left: 26px; position: relative; color: var(--text-muted); font-size: 0.95rem;
}
.topics-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Pricing */
.pricing-section { padding: 20px 0 60px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.pricing-card.highlighted { border-color: var(--accent); box-shadow: var(--shadow); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-contrast); font-size: 0.75rem;
  font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.3rem; }
.pricing-tagline { font-size: 0.88rem; }
.pricing-delivery, .pricing-revisions { font-weight: 600; color: var(--text); margin: 0; font-size: 0.92rem; }
.pricing-features { margin: 10px 0 20px; flex-grow: 1; }
.pricing-features li { padding: 6px 0 6px 24px; position: relative; font-size: 0.9rem; color: var(--text-muted); }
.pricing-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); }

.factors-section { padding: 20px 0 60px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.check-list li { padding: 8px 0 8px 26px; position: relative; color: var(--text-muted); }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Services */
.services-section { padding: 20px 0 60px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 26px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--accent); }
.service-card ul { margin-top: 10px; }
.service-card li { padding: 4px 0 4px 22px; position: relative; font-size: 0.9rem; color: var(--text-muted); }
.service-card li::before { content: '\2013'; position: absolute; left: 0; }

/* Case studies */
.case-studies-section { padding: 20px 0 60px; }
.case-studies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 26px; }
.case-card h3 { font-size: 1.1rem; color: var(--accent); }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tag { background: var(--bg-alt); border: 1px solid var(--surface-border); border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; color: var(--text-muted); }
.case-outcome { font-size: 0.9rem; margin: 0; }

/* Story (about) */
.story-section { padding: 20px 0 40px; }
.story-content { max-width: 760px; margin: 0 auto; }
.story-content p { font-size: 1.02rem; }

/* Contact */
.contact-section { padding: 20px 0 60px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 700px; margin: 0 auto 24px; }
.contact-method {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform 0.15s ease;
}
.contact-method:hover { transform: translateY(-3px); }
.contact-method h3 { margin: 0; }
.contact-method p { margin: 0 0 6px; }
.contact-note { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* Samples */
.samples-section { padding: 20px 0 60px; }
.samples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sample-card {
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sample-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sample-filetype {
  align-self: flex-start; text-transform: uppercase; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; background: var(--bg-alt); color: var(--accent);
  padding: 3px 10px; border-radius: 999px;
}
.sample-card h3 { font-size: 1.05rem; margin: 6px 0 0; }
.sample-subject { font-size: 0.82rem; color: var(--accent); margin: 0; font-weight: 600; }
.sample-desc { font-size: 0.9rem; margin: 0; flex-grow: 1; }
.sample-open { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-top: 6px; }

/* Sample preview modal */
.sample-modal { position: fixed; inset: 0; z-index: 500; display: none; }
.sample-modal.open { display: block; }
.sample-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 26, 0.6); }
.sample-modal-panel {
  position: relative; margin: 3vh auto; width: min(920px, 94vw); height: 94vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.sample-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #e5e7eb; background: #fff; flex-shrink: 0;
}
.sample-modal-header h2 { margin: 0; font-size: 1rem; color: #1a1f2b; }
.sample-modal-actions { display: flex; align-items: center; gap: 12px; }
.sample-modal-close {
  background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #6b7280;
  padding: 0 4px;
}
.sample-modal-frame { flex-grow: 1; width: 100%; border: none; }

/* CTA banner */
.cta-banner { padding: 56px 0; background: var(--bg-alt); }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-banner h2 { margin-bottom: 6px; }
.cta-banner p { margin: 0; }

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--surface-border); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-tagline { font-size: 0.88rem; margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 14px; margin-top: 6px; }
.footer-bottom { border-top: 1px solid var(--surface-border); padding: 18px 0; text-align: center; font-size: 0.82rem; color: var(--text-muted); }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 960px) {
  .stats-grid, .categories-grid, .why-grid, .process-grid, .testimonials-grid,
  .services-grid, .case-studies-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-media { max-width: 320px; margin-top: 8px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 150;
    background: var(--bg); border-bottom: 1px solid var(--surface-border);
    padding: 16px 24px; gap: 14px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .nav-dropdown-menu { position: static; grid-template-columns: 1fr; box-shadow: none; width: 100%; }
  .stats-grid, .categories-grid, .why-grid, .process-grid, .testimonials-grid,
  .services-grid, .case-studies-grid, .footer-inner, .contact-grid, .topics-list { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
}
