/* =============================================
   THE FAMOUS MISTER — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:       #1E3A5F;
  --navy-light: #2B5286;
  --gold:       #F5A623;
  --gold-light: #FDECC8;
  --coral:      #E05C3A;
  --cream:      #FBF8F4;
  --white:      #FFFFFF;
  --gray-100:   #F5F3F0;
  --gray-200:   #E8E4DF;
  --gray-400:   #A09890;
  --gray-600:   #6B635A;
  --gray-800:   #2E2A25;
  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(30,58,95,.08);
  --shadow-md:  0 6px 24px rgba(30,58,95,.12);
  --shadow-lg:  0 16px 48px rgba(30,58,95,.16);
  --transition: .25s ease;
  --max-w:      1160px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--cream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { color: var(--gray-600); }

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.section {
  padding-block: 5rem;
}
.section--alt {
  background: var(--white);
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark p   { color: rgba(255,255,255,.7); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 3rem;
  align-items: center;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-600 { max-width: 600px; }
.max-760 { max-width: 760px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover {
  background: #c94f30;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,92,58,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* ---- Tag / Badge ---- */
.tag {
  display: inline-block;
  background: var(--gold-light);
  color: #8A5C00;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section--dark .tag {
  background: rgba(245,166,35,.2);
  color: var(--gold);
}

/* ---- Section Header ---- */
.section-header {
  margin-bottom: 3rem;
}
.section-header p {
  margin-top: .75rem;
  font-size: 1.1rem;
}

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ---- Icon Box ---- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  background: var(--gold-light);
}

/* ---- Divider ---- */
.divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin-top: .75rem;
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,247,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo span {
  color: var(--coral);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  padding: .6rem 1.4rem !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ====================================================
   FOOTER
   ==================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding-block: 3.5rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  font-size: .92rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ====================================================
   FORMS
   ==================================================== */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(30,58,95,.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-success {
  display: none;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ====================================================
   HERO (shared base)
   ==================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 110% 50%, rgba(245,166,35,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at -10% 70%, rgba(224,92,58,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.15rem; max-width: 560px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-trust {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
.trust-stat span {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ====================================================
   PAGE HERO (inner pages)
   ==================================================== */
.page-hero {
  background: var(--navy);
  padding-block: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(245,166,35,.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,.7); margin-top: .75rem; font-size: 1.1rem; }

/* ====================================================
   PRICING
   ==================================================== */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .25rem;
}
.pricing-price sup {
  font-size: 1.4rem;
  vertical-align: super;
}
.pricing-note {
  font-size: .85rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}
.pricing-includes {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
}
.pricing-includes li:last-child { border-bottom: none; }
.check {
  color: #27AE60;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* ====================================================
   PORTFOLIO CARDS
   ==================================================== */
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.portfolio-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.portfolio-body {
  padding: 1.75rem;
}
.portfolio-body h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.portfolio-category {
  font-size: .82rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.portfolio-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.portfolio-tag {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .78rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 50px;
}

/* ====================================================
   PROCESS STEPS
   ==================================================== */
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.1rem; margin-bottom: .3rem; }

/* ====================================================
   TESTIMONIAL
   ==================================================== */
.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--gold);
}
.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-800);
  margin-bottom: 1rem;
}
.testimonial-author strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
}
.testimonial-author span {
  font-size: .85rem;
  color: var(--gray-400);
  margin-left: .4rem;
}

/* ====================================================
   FAQ
   ==================================================== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding-block: 1.25rem;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform var(--transition), background var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--navy);
  color: var(--white);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer-inner {
  padding-top: .75rem;
  font-size: .96rem;
  color: var(--gray-600);
}

/* ====================================================
   CTA BANNER
   ==================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(245,166,35,.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2  { color: var(--white); position: relative; }
.cta-banner p   { color: rgba(255,255,255,.75); margin: .75rem auto 2rem; max-width: 520px; position: relative; }
.cta-banner .btn { position: relative; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a {
    padding-block: .75rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open .btn { margin-top: .5rem; }
  .nav-toggle { display: flex; }
  .site-nav { position: relative; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-block: 4rem 3rem; }
  .section { padding-block: 3.5rem; }
  .hero-trust { gap: 1.5rem; }
  .cta-banner { padding: 3rem 1.5rem; }
  .step { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .pricing-price { font-size: 2.4rem; }
}
