/* style.css — single source of truth (mobile-first) */

/* ============ THEME ============ */
:root{
  --container: 1120px;

  --brand: #2f6f3e;   /* green */
  --brand2:#e1b15b;   /* gold */

  --cream: #f2f0e8;
  --paper: #FCFBF8;
  --ink: #0f172a;
  --muted: rgba(15, 23, 42, .72);
  --line: rgba(15, 23, 42, .10);

  --radius: 18px;
  --card: rgba(255,255,255,.88);
  --shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img{ max-width:100%; height:auto; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Utility */
.is-hidden{ display:none !important; }

/* Gradient text helper */
.grad-text{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* =========================
   HEADER + MOBILE MENU
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(15,23,42,.06);
  background: transparent;
  backdrop-filter: blur(10px);
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(47,111,62,.14), transparent 60%),
    radial-gradient(900px 420px at 85% 0%, rgba(225,177,91,.18), transparent 60%),
    linear-gradient(180deg, rgba(242,240,232,.92), rgba(242,240,232,.72));
}

.header-row{
  min-height: 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.brand-logo{
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display:block;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 20px rgba(15,23,42,.10);
  object-fit: contain;
}

.brand-name{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 16px;
  line-height: 1.05;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;

  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* Desktop nav */
.nav{
  display:none; /* mobile-first */
  gap: 18px;
  align-items:center;
}

.nav-link{
  font-weight: 700;
  font-size: 14px;
  color: rgba(15,23,42,.78);
  padding: 8px 2px;
  position: relative;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:0%;
  height:2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transition: width .18s ease;
}

.nav-link:hover::after{ width:100%; }

/* Language (desktop) */
.lang{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  flex: 0 0 auto;
}

.lang-link{
  color: rgba(15,23,42,.70);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  opacity: .75;
}

.lang-link.is-active{
  color: rgba(15,23,42,1);
  border-bottom-color: var(--brand);
  opacity: 1;
}

.lang-sep{ color: rgba(15,23,42,.35); }

/* Burger button (mobile) */
.burger{
  display:inline-flex;           /* mobile default ON */
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.65);
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:12px 12px;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.burger span{
  display:block;
  height:2px;
  width:18px;
  background: rgba(15,23,42,.92);
  border-radius:999px;
}

.burger span:nth-child(2){ width: 14px; opacity:.95; }
.burger span:nth-child(3){ width: 18px; opacity:.90; }

/* overlay + drawer */
.menu-overlay{
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.35);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease;
  z-index: 90;
}

.mobile-menu{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(86vw, 380px);
  background: rgba(252,251,248,.98);
  border-left: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 20px 60px rgba(15,23,42,.18);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index:95;
  display:flex;
  flex-direction:column;
}

.mobile-menu__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 12px;
  border-bottom:1px solid rgba(15,23,42,.10);
}

.mobile-menu__title{
  font-weight:850;
  font-size:18px;
}

.mobile-menu__close{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.7);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.mobile-menu__nav{
  padding: 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mobile-menu__nav a{
  font-size: 18px;
  font-weight: 650;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(15,23,42,.88);
}

.mobile-menu__nav a:hover{
  background: rgba(15,23,42,.06);
}

.mobile-menu__lang{
  margin-top:auto;
  padding: 16px;
  border-top:1px solid rgba(15,23,42,.10);
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:850;
}

/* open state */
body.is-menu-open .menu-overlay{
  opacity:1;
  pointer-events:auto;
}
body.is-menu-open .mobile-menu{
  transform: translateX(0);
}

/* breakpoints */
@media (min-width: 901px){
  .header-row{ min-height: 74px; padding: 14px 0; }
  .brand-name{ font-size: 20px; }
  .nav{ display:flex; }
  .burger{ display:none; }
  .lang{ display:flex; }
}

@media (max-width: 900px){
  .nav{ display:none !important; }
  .lang{ display:none !important; } /* мову ховаємо в бургер */
  .burger{ display:inline-flex !important; }
}

/* ============ HERO ============ */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: 22px 0 26px 0;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.hero-bg{ display:none; }

.hero-inner{
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-kicker{
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15,23,42,.72);
}

.hero-title{
  margin: 0 0 14px 0;
  line-height: 1.04;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 44px;
}

.hero-title-left{ color: rgba(15,23,42,.95); }
.hero-title-brand{
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}

.hero-subtitle{
  margin: 0 0 18px 0;
  max-width: 58ch;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(15,23,42,.80);
}

.hero-actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items:center;
}

@media (min-width: 901px){
  .hero{
    min-height: 520px;
    display:flex;
    align-items:center;
    padding: 0;
    background: transparent;
  }

  .hero-bg{
    display:block;
    position:absolute;
    inset:-40px;
    background:
      radial-gradient(1200px 500px at 15% 20%, rgba(47,111,62,.28), transparent 60%),
      radial-gradient(900px 500px at 85% 30%, rgba(225,177,91,.28), transparent 60%),
      linear-gradient(110deg, rgba(47,111,62,.12), rgba(225,177,91,.12)),
      url("/assets/img/hero/hero.jpg");
    background-size: cover;
    background-position: center 20%;
    filter: saturate(1.04) contrast(1.04);
    transform: scale(1.02);
  }

  .hero-bg::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(242,240,232,.68), rgba(242,240,232,.86));
  }

  .hero-inner{
    text-align: center;
    padding: 84px 0;
  }

  .hero-title{
    margin: 0 auto 14px auto;
    max-width: 980px;
    font-size: clamp(44px, 5.2vw, 74px);
  }

  .hero-subtitle{
    margin: 0 auto 28px auto;
    font-size: 18px;
    color: rgba(15,23,42,.74);
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  }

  .hero-actions{ justify-content:center; }
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  cursor:pointer;
}

.btn-primary{
  border-color: rgba(15,23,42,.12);
  background: linear-gradient(90deg, rgba(47,111,62,.85), rgba(225,177,91,.92));
  color: #0b1220;
}

.btn-ghost{ background: rgba(255,255,255,.72); }
.btn:active{ transform: translateY(1px); }

/* ============ SECTIONS ============ */
.section{ padding: 40px 0; }

.section-title{
  margin: 0 0 10px 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 44px;
  letter-spacing: -0.02em;
}

.section-text{
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* ============ SERVICES CAROUSEL (home + /services) ============ */
.services-carousel{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.services-carousel::-webkit-scrollbar{ height: 8px; }
.services-carousel::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.14);
  border-radius: 999px;
}

.svc-card{
  scroll-snap-align: start;
  min-width: 88%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}

.svc-img{
  width:100%;
  height: 190px;
  object-fit: cover;
  display:block;
  filter: saturate(1.06) contrast(1.08);
}

.svc-body{ padding: 14px 14px 16px 14px; }

.svc-title{
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.svc-desc{
  margin: 0 0 10px 0;
  color: rgba(15,23,42,.74);
  line-height: 1.45;
}

.svc-meta{
  display:grid;
  gap: 6px;
  color: rgba(15,23,42,.74);
  margin-bottom: 12px;
}

.svc-actions{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

.svc-actions .btn{
  width: 100%;
  max-width: 280px;
}

@media (min-width: 901px){
  .services-carousel{
    overflow: visible;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 0;
  }
  .svc-card{ min-width: auto; }
  .svc-img{ height: 170px; }
}

/* ============ BOOKING (твій існуючий блоки залишаю) ============ */
.form{ max-width: 820px; }

.form label{
  display:block;
  margin-bottom: 12px;
  font-size: 14px;
}

.form input, .form select, .form textarea{
  width:100%;
  margin-top: 6px;
  padding: 12px 12px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  font-size: 16px; /* iOS zoom fix */
  background: rgba(255,255,255,.92);
}

.form input:focus, .form select:focus, .form textarea:focus{
  outline: none;
  border-color: rgba(47,111,62,.35);
  box-shadow: 0 0 0 4px rgba(47,111,62,.12);
}

.row-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px){
  .row-2{ grid-template-columns: 1fr !important; }
}

/* =========================
   FOOTER
   ========================= */

.site-footer{
  border-top: 1px solid rgba(15,23,42,.08);
  margin-top: 60px;
  padding: 28px 0;
  background:
    radial-gradient(700px 420px at 10% 20%, rgba(47,111,62,.10), transparent 60%),
    radial-gradient(700px 420px at 90% 30%, rgba(225,177,91,.14), transparent 60%),
    linear-gradient(180deg, rgba(242,240,232,.92), rgba(242,240,232,.98));
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.footer-brand-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer-logo{
  width:44px;
  height:44px;
  border-radius:999px;
  object-fit:contain;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(15,23,42,.10);
}

.footer-brand{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
}

.footer-sub{
  opacity:.75;
  font-weight:700;
  font-size:13px;
  line-height:1.1;
}

.footer-text{
  color: var(--muted);
  line-height: 1.5;
}

.footer-strong{
  font-weight: 900;
  color: rgba(15,23,42,.86);
  margin-bottom: 6px;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding-top: 2px;
}

.footer-links a{
  font-weight:800;
  text-decoration:none;
  color: rgba(15,23,42,.86);
}

.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.10);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy{
  color: rgba(15,23,42,.70);
  font-size: 14px;
}

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr; }
}
/* ===== MOBILE MENU: switch open-state to html.nav-open (valenciafacials style) ===== */

.menu-overlay[hidden],
.mobile-menu[hidden]{ display:none !important; }

/* open state via html.nav-open */
html.nav-open .menu-overlay{
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.nav-open .mobile-menu{
  transform: translateX(0) !important;
}

/* lock scroll */
html.nav-open{ overflow: hidden; }

/* burger to X animation */
html.nav-open .burger span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
html.nav-open .burger span:nth-child(2){
  opacity: 0;
}
html.nav-open .burger span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* add transitions to your burger spans (so animation works) */
.burger span{
  transition: transform .2s ease, opacity .2s ease;
}
/* ===== MOBILE MENU: switch open-state to html.nav-open (valenciafacials style) ===== */

.menu-overlay[hidden],
.mobile-menu[hidden]{ display:none !important; }

/* open state via html.nav-open */
html.nav-open .menu-overlay{
  opacity: 1 !important;
  pointer-events: auto !important;
}

html.nav-open .mobile-menu{
  transform: translateX(0) !important;
}

/* lock scroll */
html.nav-open{ overflow: hidden; }

/* burger to X animation */
html.nav-open .burger span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
html.nav-open .burger span:nth-child(2){
  opacity: 0;
}
html.nav-open .burger span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* add transitions to your burger spans (so animation works) */
.burger span{
  transition: transform .2s ease, opacity .2s ease;
}
