/* ============================================================
   Paula Creations — Global Stylesheet
   Brand tokens, reset, typography, layout, components,
   responsive breakpoints, reveal animations.
   ============================================================ */

/* -------- 1. Tokens -------- */
:root {
  --cream: #FBF4EC;
  --brown: #5C1F1A;
  --brown-soft: #7A3A32;
  --coral: #E85A4F;
  --pink: #F6C9BE;
  --pink-soft: #FBE2DB;
  --ink: #3A1A15;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-script: 'Great Vibes', cursive;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(92,31,26,0.06);
  --shadow-md: 0 8px 28px rgba(92,31,26,0.12);
}

/* -------- 2. Reset + base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--brown); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.6rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--coral); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brown); }
ul { padding-left: 1.2em; }

/* -------- 3. Utility -------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 10px;
}
.lede { font-size: 1.1rem; color: var(--brown-soft); max-width: 60ch; }
.brand-script { font-family: var(--font-script); color: var(--coral); font-weight: 400; }

/* -------- 4. Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--brown); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: #fff; }

/* -------- 5. Header + nav -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,244,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92,31,26,0.06);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
}
.brand { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.brand .brand-script { font-size: 32px; line-height: 1; }
.brand-sub { font-family: var(--font-heading); color: var(--brown); font-weight: 500; font-size: 18px; }
.nav-menu {
  list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center;
}
.nav-menu a { color: var(--brown); font-weight: 500; font-size: 15px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--coral); }
.nav-menu a.nav-cta {
  background: var(--coral); color: #fff;
  padding: 10px 20px; border-radius: 999px;
}
.nav-menu a.nav-cta:hover { background: var(--brown); }
.nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--brown); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* -------- 6. Hero (home) -------- */
.hero { padding: 48px 32px 64px; }
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.hero-text { padding-top: 24px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Brand logo in header */
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
  /* Blends a white PNG background into the cream page so the logo
     looks like it sits on the page rather than on a white card.
     Best long-term fix: re-export logo.png with a transparent background. */
  mix-blend-mode: multiply;
}

/* -------- 6b. Section separation on the home page -------- */
.about-teaser { background: #fff; }
.services-preview { background: var(--cream); }

/* -------- 7. Split section (about teaser, approach intro) -------- */
.split {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 32px;
}
.split-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* -------- 8. Section headings + grids -------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .lede { margin: 0 auto; }
.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin: 18px auto 0;
}
.section-cta { text-align: center; margin-top: 48px; }
.services-preview, .services-full, .principles, .process { padding: 80px 32px; }
.card-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.card-grid-large {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}

/* -------- 9. Cards -------- */
.service-card, .principle-card, .service-card-full {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover, .principle-card:hover, .service-card-full:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card-full ul { margin: 16px 0 0; padding-left: 20px; }
.service-card-full li { margin-bottom: 6px; color: var(--brown-soft); }
.icon-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: transparent;
  color: var(--brown);
  border: 1.5px solid rgba(92,31,26,0.18);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.service-card:hover .icon-bubble,
.principle-card:hover .icon-bubble,
.service-card-full:hover .icon-bubble {
  border-color: var(--coral);
  color: var(--coral);
  background: rgba(232,90,79,0.06);
}
.icon-bubble svg { width: 26px; height: 26px; stroke-width: 1.4; }
.icon-bubble.small { width: 40px; height: 40px; margin-bottom: 0; }
.icon-bubble.small svg { width: 20px; height: 20px; }
.icon-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(232,90,79,0.15);
  color: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-mini svg { width: 16px; height: 16px; }

/* -------- 10. Process steps -------- */
.process-steps {
  list-style: none; padding: 0; margin: 0;
  max-width: 1280px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
  margin: 0 auto;
}
.process-steps li {
  background: #fff; padding: 32px 28px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-block;
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  color: var(--pink);
  line-height: 1;
  margin-bottom: 12px;
}

/* -------- 11. Page hero (services) -------- */
.page-hero { padding: 60px 32px 40px; max-width: 1280px; margin: 0 auto; text-align: center; }
.page-hero-inner { margin-bottom: 40px; }
.page-hero-inner .lede { margin: 0 auto; }
.page-hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* -------- 12. CTA banner -------- */
.cta-banner {
  position: relative;
  padding: 120px 32px;
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
  margin-top: 80px;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(92,31,26,0.75), rgba(232,90,79,0.55));
}
.cta-overlay { position: relative; max-width: 720px; margin: 0 auto; }
.cta-overlay h2 { color: #fff; }
.cta-overlay p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }

/* -------- 13. Contact page -------- */
.contact-hero {
  text-align: center; padding: 80px 32px 32px;
  max-width: 720px; margin: 0 auto;
}
.contact-layout { padding: 32px 32px 80px; }
.contact-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
}
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 20px;
}
.pill-label {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: box-shadow 0.2s;
}
.pill-label:focus-within { box-shadow: 0 0 0 3px rgba(232,90,79,0.3); }
.pill-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--pink-soft); color: var(--coral);
  border-radius: 50%; flex-shrink: 0;
}
.pill-icon svg { width: 20px; height: 20px; }
.pill-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pill-title { font-weight: 600; font-size: 13px; color: var(--brown); }
.pill-hint { font-weight: 400; font-size: 12px; color: var(--brown-soft); margin-left: 4px; }
.pill-label input,
.pill-label textarea {
  border: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  width: 100%; resize: vertical;
  padding: 2px 0;
}
.pill-label input:focus, .pill-label textarea:focus { outline: none; }
.pill-label input[type="file"] { font-size: 14px; color: var(--brown-soft); }
.pill-label select {
  border: none; background: transparent;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  width: 100%; padding: 2px 22px 2px 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C1F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  cursor: pointer;
}
.pill-label select:focus { outline: none; }

/* intl-tel-input integration — we run it headlessly (no flag dropdown inside
   the phone input) because the country is chosen via the separate Country
   pill above. These overrides keep the phone input looking like a plain
   input sitting inside its pill. */
.iti { width: 100%; }
.iti__flag-container { display: none; }
.iti input.iti__tel-input { padding-left: 0 !important; }

.btn-submit { align-self: flex-start; margin-top: 8px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-status.ok    { color: #1f7a1f; }
.form-status.error { color: #B00020; }

.contact-sidebar {
  background: var(--pink-soft);
  padding: 40px;
  border-radius: var(--radius-lg);
  align-self: start;
}
.contact-sidebar h2 { margin-top: 0; }
.sidebar-contact { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-contact li { display: flex; gap: 16px; align-items: center; }
.sidebar-contact .sb-label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brown-soft); margin-bottom: 2px;
}
.sidebar-map { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; }
.sidebar-note { font-size: 13px; color: var(--brown-soft); margin: 0; }

/* Consent block */
.consent-block { margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.consent-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; color: var(--brown-soft); cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--coral); cursor: pointer;
}
.consent-row a { color: var(--coral); text-decoration: underline; font-weight: 500; }
.consent-row a:hover { color: var(--brown); }
.required-star { color: #D10000; font-weight: 700; margin-right: 4px; }
.required-note { font-size: 12px; color: var(--brown-soft); margin-top: 2px; }
.consent-row input:invalid:focus { outline: 2px solid #D10000; outline-offset: 2px; }

/* -------- 14. Legal pages (privacy, terms) -------- */
.legal-page { padding: 80px 32px; }
.legal-inner { max-width: 760px; margin: 0 auto; background: #fff; padding: 56px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.legal-inner h1 { margin-top: 0; }
.legal-inner h2 { margin-top: 32px; font-size: 1.25rem; }
.legal-meta { color: var(--brown-soft); font-size: 14px; }

/* -------- 15. Testimonials (styles stay ready while block is commented) -------- */
.testimonials { padding: 80px 32px; }
.testimonial-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.testimonial { background: #fff; border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }

/* -------- 16. Footer -------- */
.site-footer { background: var(--brown); color: #fff; padding: 64px 32px 24px; margin-top: 80px; }
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
}
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-script { color: var(--pink); font-size: 32px; }
.footer-brand p { color: rgba(255,255,255,0.7); }
.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
  /* Inverts the logo so it reads white on the dark footer background.
     Best long-term fix: supply a dedicated light/white version of the logo. */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-col a { color: rgba(255,255,255,0.8); font-size: 14px; }
.footer-col a:hover { color: var(--pink); }
.footer-contact li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8); font-size: 14px; }
.footer-contact .icon-mini { background: rgba(232,90,79,0.3); color: #fff; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}
.social-row a:hover { background: var(--coral); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  max-width: 1280px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); font-size: 13px; text-align: center;
}

/* -------- 17. Reveal animation -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* -------- 18. Responsive -------- */
@media (max-width: 1280px) {
  .hero-inner, .split { gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  /* On mobile, unstick the header AND drop the backdrop-filter so the
     drawer is not trapped inside the header's stacking context. */
  .site-header {
    position: relative;
    backdrop-filter: none;
    background: var(--cream);
  }

  .nav-container {
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
  }
  .nav-toggle {
    display: flex;
    order: -1;                      /* hamburger sits to the LEFT of the brand */
    position: relative;
    z-index: 1001;
    background: rgba(92,31,26,0.08);
    border-radius: 10px;
  }
  .nav-toggle:active { background: rgba(92,31,26,0.16); }
  .brand { margin: 0 auto; }        /* centers the brand between the toggle and the right edge */
  .brand-logo { height: 60px; }     /* slightly smaller than desktop, still prominent */

  .nav-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    padding: 24px 0;
    box-shadow: 4px 0 24px rgba(92,31,26,0.18);
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); pointer-events: auto; }
  .nav-menu li {
    width: 100%;
    text-align: left;
    padding: 0;
    border-bottom: 1px solid rgba(92,31,26,0.08);
  }
  .nav-menu li a {
    display: block;
    padding: 16px 28px;
    font-size: 16px;
  }
  .nav-menu a.nav-cta {
    display: inline-block;
    margin: 16px 28px;
    padding: 12px 24px;
  }

  /* Backdrop dims the page when drawer is open */
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(92,31,26,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }
  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero { padding: 48px 24px; }
  .hero-inner, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; max-width: 280px; margin: 0 auto; }
  .services-preview, .services-full, .principles, .process, .legal-page { padding: 56px 24px; }
  .contact-form, .contact-sidebar, .legal-inner { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-contact li, .sidebar-contact li { justify-content: center; }
  .social-row { justify-content: center; }
}
@media (max-width: 400px) {
  .btn { padding: 12px 22px; font-size: 14px; }
  .brand .brand-script { font-size: 28px; }
  .icon-bubble { width: 48px; height: 48px; }
  .icon-bubble svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------- 19. Image protection (deterrent, not foolproof) --------
   Blocks the casual copy paths: drag-to-desktop, long-press save on mobile,
   and text-selection highlighting. A determined user can still screenshot
   or use DevTools — there is no way to prevent that on a public web page. */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS Safari — disables long-press menu */
}