/* Acyle Creations — public site
   Palette from the brand board: cream, sage (logo), deep green, almond, taupe. */
:root {
  --cream: #f8f4ef;
  --paper: #fffdfa;
  --almond: #f0ddcd;
  --tint: #f3ece5;
  --sage: #8a9a88;
  --sage-soft: #dfe4dc;
  --green: #2f3a33;
  --green-2: #3d4a41;
  --taupe: #b98f80;
  --ink: #2a2622;
  --muted: #6f6861;
  --line: #e4dbd2;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(47, 58, 51, .28);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.65 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; color: var(--green); }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--taupe); font-weight: 500; margin-bottom: .9rem;
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; transition: .25s ease;
}
.btn--dark { background: var(--green); color: var(--cream); }
.btn--dark:hover { background: var(--green-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--green); width: 100%; }
.btn--light:hover { background: var(--almond); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(248, 244, 239, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.25); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 40px; width: auto; display: block; }
.brand__name { font-family: var(--serif); font-size: 1.2rem; color: var(--green); letter-spacing: .01em; }
.brand--small img { height: 30px; width: auto; }
.brand--small .brand__name { font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); position: relative; padding: .4rem 0; transition: color .2s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--taupe); transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.nav__links a:hover, .nav__links a.is-active, .nav__links a.is-current { color: var(--green); }
.nav__links a:hover::after, .nav__links a.is-active::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__cta { border: 1px solid var(--green); color: var(--green) !important; border-radius: 999px; padding: .55rem 1.3rem !important; }
.nav__cta:hover { background: var(--green); color: var(--cream) !important; }
.nav__toggle { display: none; }

/* Hero */
.hero {
  padding: calc(var(--nav-h) + clamp(2.5rem, 7vw, 6rem)) 0 1rem;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4rem;
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin-bottom: 1.4rem; letter-spacing: -.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 2.8rem; }
.stats { display: flex; gap: 2.4rem; margin: 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-family: var(--serif); font-size: 1.9rem; color: var(--green); line-height: 1.1; }
.stats dd { margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__visual { position: relative; display: block; padding: 0 2.5rem 3rem 0; }
.hero__visual .browser--tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero__visual:hover .browser--tilt { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg) translateY(-4px); }
.browser--tilt { transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); box-shadow: 0 40px 80px -30px rgba(47,58,51,.4); }
.phone--hero { position: absolute; right: 0; bottom: 0; width: 30%; }

/* Browser + phone frames */
.browser { background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser__bar {
  display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  background: #f1ebe5; border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d9cfc6; }
.browser__bar span {
  flex: 1; margin-left: 8px; font-size: .64rem; color: var(--muted); letter-spacing: .03em;
  background: var(--paper); border-radius: 5px; padding: 1px 8px; max-width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  background: var(--green); padding: 5px; border-radius: 22px;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.45);
}
.phone img { border-radius: 17px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--green); color: #e9e4dc; }
.section--dark h2 { color: var(--cream); }
.section--dark .lead { color: #c8c3b9; }
.section--dark .eyebrow { color: var(--almond); }
.section__head { max-width: 40rem; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .9rem; }
.section__head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: .9rem; }
.page { padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.page-websites .page { background: var(--tint); }

/* Closing call-to-action strip on inner pages */
.cta { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta .btn--light { width: auto; }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: var(--cream); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: var(--cream); }
.section__head p:last-child { color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--green); margin-bottom: 1.4rem;
}
.service h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.service p { color: var(--muted); font-size: .95rem; }

/* Website grid */
.works { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 2rem 1.6rem; }
.work { display: flex; flex-direction: column; gap: 1rem; }
.work[hidden] { display: none; }
.work__media { position: relative; }
.work .browser { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.work .browser > img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.work:hover .browser { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(47,58,51,.45); }
.work:hover .browser > img { transform: scale(1.03); }
.work__placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--almond), var(--sage-soft));
  font-family: var(--serif); font-size: 3rem; color: var(--green);
}
.work__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0 .2rem; }
.work__info h3 { font-size: 1.2rem; }
.work__info p { font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.work__visit {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--green); transition: .25s;
}
.work:hover .work__visit { background: var(--green); color: var(--cream); border-color: var(--green); transform: rotate(45deg); }
/* Featured = full-width spotlight row */
.work__tag { display: none; }
.work__cta { display: none; }
.work--featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.75fr 1fr; align-items: center; gap: 3.5rem;
  padding: 1rem 0 1.5rem;
}
.work--featured .work__media { padding: 0 9% 5% 0; }
.work--featured .phone { position: absolute; right: 0; bottom: 0; width: 21%; }
.work--featured .work__info { flex-direction: column; gap: 1.4rem; padding: 0; }
.work--featured .work__info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.work--featured .work__info p { font-size: .98rem; margin-top: .5rem; }
.work--featured .work__tag {
  display: block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); margin-bottom: .8rem;
}
.work--featured .work__visit { display: none; }
.work--featured .work__cta { display: inline-flex; }
.work:hover .work__cta { background: var(--green); color: var(--cream); }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.logo-card {
  position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg, #f6f1ec); overflow: hidden; cursor: zoom-in; padding: 0;
}
.logo-card img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.logo-card:hover img { transform: scale(1.05); }
.logo-card__label {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.6rem 1rem .9rem; text-align: left; color: var(--cream);
  background: linear-gradient(to top, rgba(47,58,51,.85), transparent);
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.logo-card:hover .logo-card__label, .logo-card:focus-visible .logo-card__label { opacity: 1; transform: none; }
.logo-card__label strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.logo-card__label small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(30, 36, 32, .9);
  display: grid; place-items: center; padding: 1.5rem; animation: fade .25s;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(720px, 100%); }
.lightbox img { border-radius: var(--radius); max-height: 78vh; margin: auto; }
.lightbox figcaption { text-align: center; color: var(--cream); margin-top: 1rem; font-family: var(--serif); font-size: 1.2rem; }
.lightbox figcaption small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 1.6rem; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.contact__list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .5rem; }
.contact__list a, .contact__static {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1); color: var(--cream); transition: color .2s;
}
.contact__list a:hover { color: var(--almond); }
.contact__list svg { flex: none; color: var(--sage); }
.contact__list small { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #a9b3a7; }
.form {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: calc(var(--radius) + 4px); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #b9c0b6; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--cream); letter-spacing: 0; text-transform: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: .8rem .95rem; transition: border-color .2s, background .2s; min-height: 48px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #b9c0b6 50%), linear-gradient(135deg, #b9c0b6 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--ink); }
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #8d968b; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sage); background: rgba(255,255,255,.09); }
.form em { font-style: normal; text-transform: none; letter-spacing: 0; color: #f0b9a8; font-size: .8rem; }
.form__ok { background: var(--sage); color: var(--green); padding: .9rem 1rem; border-radius: 10px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { background: var(--green); color: #a9b3a7; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; font-size: .78rem; }
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; transition: color .2s; }
.footer__links a:hover { color: var(--cream); }
.footer .brand__name { color: var(--cream); }

/* Floating WhatsApp button — stays in view on every page */
.whatsapp-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .55), 0 2px 8px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
  animation: whatsapp-pulse 2.6s ease-out infinite; z-index: -1;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 32px -8px rgba(37, 211, 102, .65), 0 2px 8px rgba(0,0,0,.14); }
@keyframes whatsapp-pulse {
  0% { opacity: .45; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-fab::before { animation: none; } }
@media (max-width: 600px) {
  .whatsapp-fab { right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .hero { gap: 2.5rem; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .nav__toggle span { width: 24px; height: 1.5px; background: var(--green); transition: .3s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: .5rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s ease;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 1rem .25rem; font-size: .82rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--green) !important; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: calc(var(--nav-h) + 2.5rem); text-align: left; }
  .hero__visual { padding: 0 12% 2rem 0; max-width: 560px; }
  .browser--tilt { transform: none; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .work--featured { grid-template-columns: 1fr; gap: 1.4rem; padding: 0 0 1rem; }
  .work--featured .work__info { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 2.5rem); }
  .brand__name { font-size: 1.05rem; }
  .brand img { height: 34px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .footer__links { gap: 1.2rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { gap: 1.4rem; justify-content: space-between; }
  .stats dt { font-size: 1.55rem; }
  .stats dd { font-size: .6rem; }
  .services { gap: .75rem; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; padding: 1.25rem; }
  .service__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .service__icon svg { width: 22px; height: 22px; }
  .service h3 { font-size: 1.15rem; margin-bottom: .25rem; }
  .service p { font-size: .88rem; }

  .works { grid-template-columns: 1fr 1fr; gap: 1.6rem .85rem; }
  .work { gap: .6rem; }
  .browser__bar { height: 18px; padding: 0 6px; gap: 3px; }
  .browser__bar i { width: 5px; height: 5px; }
  .browser__bar span { display: none; }
  .browser { border-radius: 7px; }
  .work__info { padding: 0; }
  .work__info h3 { font-size: 1rem; }
  .work__info p { font-size: .72rem; line-height: 1.4; }
  .work__visit { display: none; }
  .work--featured .browser__bar { height: 24px; }
  .work--featured .browser__bar span { display: block; font-size: .6rem; }
  .work--featured .work__media { padding: 0 13% 7% 0; }
  .work--featured .phone { width: 27%; border-radius: 16px; padding: 4px; }
  .work--featured .phone img { border-radius: 12px; }
  .work--featured .work__cta { width: 100%; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .logo-card__label { opacity: 1; transform: none; padding: 1.2rem .75rem .65rem; }
  .logo-card__label strong { font-size: .9rem; }
  .logo-card__label small { font-size: .58rem; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .section__head { margin-bottom: 2.2rem; }
}
