/* ===========================================================
   Tattoos by Mariella — light & airy, organic, botanical
   =========================================================== */

:root {
  --bg:           #F7F2E8;     /* warm cream */
  --bg-alt:       #EFE7D5;     /* deeper cream for alt sections */
  --bg-card:      #FFFCF5;     /* near-white card */
  --ink:          #2D3F2A;     /* deep forest green for headings */
  --ink-soft:     #3F3A33;     /* warm charcoal for body */
  --ink-muted:    #6B6256;     /* subdued */
  --sage:         #A8B5A0;     /* soft sage accent */
  --sage-deep:    #7E8E72;     /* deeper sage for hover */
  --terracotta:   #C97B5C;     /* CTA */
  --terracotta-d: #B66A4A;     /* CTA hover */
  --rule:         rgba(45,63,42,.18);

  --serif:    "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:     "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw:     1180px;
  --pad-x:    clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 10vw, 120px);

  --shadow-sm: 0 1px 2px rgba(45,63,42,.06), 0 4px 12px rgba(45,63,42,.05);
  --shadow-md: 0 6px 24px rgba(45,63,42,.10);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
a:hover { color: var(--terracotta-d); border-bottom-color: currentColor; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--sage); color: var(--bg); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: .4em;
}
.section-title.centered { text-align: center; }
.section-lede {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 3rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ---------- layout helpers ---------- */
.site-header,
.hero-inner,
.about-grid,
.gallery,
.steps,
.testimonial-grid,
.form-wrap,
.footer-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-divider {
  display: flex; justify-content: center;
  color: var(--sage);
  margin-bottom: clamp(40px, 6vw, 64px);
  opacity: .8;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
  background: rgba(247, 242, 232, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  border: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--sage-deep); display: inline-flex; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.site-nav {
  display: flex; align-items: center; gap: 24px;
  font-size: .95rem;
}
.site-nav a {
  color: var(--ink-soft);
  border-bottom: none;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--terracotta-d); }
.site-nav .nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.site-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168,181,160,.30), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,123,92,.18), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .14;
  z-index: -1;
}
.hero::before {
  top: 6%; left: -80px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%237E8E72' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M100 180 C 100 130, 60 110, 50 60 C 90 70, 100 110, 100 150'/><path d='M100 150 C 100 110, 140 90, 160 50 C 150 100, 120 130, 100 180'/><ellipse cx='70' cy='95' rx='12' ry='4' transform='rotate(-30 70 95)'/><ellipse cx='130' cy='90' rx='12' ry='4' transform='rotate(30 130 90)'/><ellipse cx='80' cy='130' rx='10' ry='3' transform='rotate(-20 80 130)'/></svg>");
  transform: rotate(-12deg);
}
.hero::after {
  bottom: 4%; right: -60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%237E8E72' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M30 100 Q 70 50, 110 100 T 190 100'/><circle cx='30' cy='100' r='6'/><circle cx='190' cy='100' r='6'/><path d='M70 75 L 75 65 M 110 75 L 115 65 M 150 75 L 155 65'/><path d='M70 125 L 75 135 M 110 125 L 115 135 M 150 125 L 155 135'/></svg>");
  transform: rotate(8deg);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--sage-deep);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 500;
  line-height: 1.0;
  margin: 0 0 .35em;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 30ch;
  margin: 0 auto 2.4rem;
  color: var(--ink-soft);
}
.hero-meta {
  margin-top: 2rem;
  font-size: .92rem;
  color: var(--ink-muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: #FFF8EE;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--terracotta-d);
  color: #FFF8EE;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-bottom: none;
}
.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
  width: 100%;
  max-width: 360px;
  margin: 18px auto 0;
}

/* ---------- about ---------- */
.about {
  padding: var(--section-y) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-photo {
  margin: 0;
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto auto;
  width: 56px; height: 56px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%23A8B5A0' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M30 54 C 30 36, 16 28, 12 12 C 28 16, 30 28, 30 42'/><path d='M30 42 C 30 30, 44 22, 48 8 C 44 24, 36 32, 30 54'/></svg>");
  background-size: contain; background-repeat: no-repeat;
  z-index: -1;
}
.about-bullets {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}
.about-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0;
  font-size: .98rem;
  color: var(--ink-soft);
}
.bullet-icon {
  color: var(--sage-deep);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-copy p {
  margin: 0 0 1.1em;
}

/* ---------- portfolio ---------- */
.portfolio {
  background: var(--bg-alt);
  padding: var(--section-y) 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 18px);
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- how it works ---------- */
.how {
  padding: var(--section-y) 0;
}
.steps {
  list-style: none;
  /* horizontal centering preserved (layout helper sets margin-left/right: auto;
     padding-left/right: var(--pad-x)). Only set vertical margin here. */
  margin-top: 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.step {
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.step-icon {
  display: inline-flex;
  width: 72px; height: 72px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--sage-deep);
  margin-bottom: 16px;
}
.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--terracotta);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.step h3 {
  font-size: 1.5rem;
  margin-bottom: .5em;
}
.step p {
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------- testimonials ---------- */
.testimonials {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 1.5rem;
}
.testimonial {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 32px 28px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -10px; left: 18px;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--sage);
}
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.2em;
}
.testimonial footer {
  font-size: .9rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
}
.testimonial cite {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
}

/* ---------- form ---------- */
.form-section {
  padding: var(--section-y) 0;
}
.form-wrap {
  max-width: 720px;
}
.inquiry-form {
  background: var(--bg-card);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}
.inquiry-form label {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.req { color: var(--terracotta); margin-left: 2px; }
.opt { color: var(--ink-muted); font-weight: 400; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row > label { margin-bottom: 18px; }
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea,
.inquiry-form input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--sans);
}
.inquiry-form input[type="file"] {
  background: transparent;
  padding: 10px 0;
  border: none;
}
.inquiry-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--sans);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(168,181,160,.25);
}
.file-help {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--ink-muted);
}
.form-meta {
  text-align: center;
  font-size: .9rem;
  color: var(--ink-muted);
  margin-top: 20px;
}
.form-status {
  margin-top: 16px;
  padding: 0;
  font-size: .95rem;
  text-align: center;
}
.form-status.error { color: #B0492C; }
.form-success {
  background: var(--bg-card);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.form-success h3 {
  font-size: 2rem;
  color: var(--sage-deep);
  margin-bottom: .4em;
}
.form-success p { color: var(--ink-soft); }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer {
  background: #2D3F2A;
  color: #DCD3BE;
  padding: clamp(56px, 8vw, 88px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 48px;
}
.site-footer h4 {
  color: #FFF8EE;
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: .6em;
}
.site-footer p { color: #C7BFA9; line-height: 1.65; }
.site-footer a {
  color: #DCD3BE;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover {
  color: #FFF8EE;
  border-bottom-color: rgba(255,248,238,.4);
}
.footer-mark {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 .4em;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #FFF8EE;
}
.footer-mark svg { color: var(--sage); }
.footer-tagline { font-size: .95rem; color: #B5AC95; }
.footer-fineprint {
  text-align: center;
  font-size: .82rem;
  color: #8A8270;
  letter-spacing: .04em;
  border-top: 1px solid rgba(255,248,238,.10);
  padding-top: 24px;
  margin: 0;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(20, 25, 18, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: lb-fade .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 60px rgba(0,0,0,.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,248,238,.10);
  color: #FFF8EE;
  border: 1px solid rgba(255,248,238,.18);
  border-radius: 999px;
  width: 48px; height: 48px;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,248,238,.22);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .site-nav { gap: 14px; font-size: .88rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero::before, .hero::after { display: none; }
}

/* ---------- hero keyword tagline (visually subordinate, semantically inside H1 for SEO) ---------- */
.hero-kw {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: .75em;
  line-height: 1.4;
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}
.faq .section-title { text-align: center; }
.faq-list {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] {
  border-color: rgba(45,63,42,.35);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex: 1;
}
.faq-item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--sage-deep);
  border-bottom: 1.5px solid var(--sage-deep);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease-out;
}
.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}
.faq-body {
  padding: 0 24px 24px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.faq-body p { margin: 0 0 .8em; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a {
  color: var(--terracotta-d);
  border-bottom: 1px solid currentColor;
}

@media (max-width: 640px) {
  .faq-item summary { padding: 18px 18px; }
  .faq-body { padding: 0 18px 18px; }
}

/* ---------- a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}
