/* ══════════════════════════════════════════════════════════════
   SVENCO Engineering — Styles
   Theme tokens live in theme.css
   ══════════════════════════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--coal);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.container { width: var(--container); margin: 0 auto; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease) var(--d, 0s),
              transform .7s var(--ease) var(--d, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Section label / heading ─── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .75rem;
}
.section-label--light { color: var(--amber); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--coal);
  margin-bottom: 1.5rem;
}
.section-heading em {
  font-style: italic;
  color: var(--amber);
}
.section-heading--light { color: var(--white); }
.section-heading--light em { color: var(--amber); }


/* ═══════════════════════════ NAV ═══════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 8px rgba(15,21,37,.08);
  padding: .65rem 0;
}
.nav.scrolled .nav__link {
  color: var(--zinc);
}
.nav.scrolled .nav__link:hover {
  color: var(--coal);
}
.nav.scrolled .nav__link--cta {
  color: var(--amber);
  border-color: var(--amber);
}
.nav.scrolled .nav__link--cta:hover {
  background: var(--amber);
  color: #fff;
}
.nav__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  height: 44px;
  width: auto;
  transition: height .35s;
}
.nav.scrolled .nav__logo img { height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--zinc);
  transition: color .25s;
  letter-spacing: .02em;
}
.nav__link:hover { color: var(--coal); }
.nav__link--cta {
  padding: .55rem 1.3rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 4px;
  transition: background .25s, color .25s;
}
.nav__link--cta:hover {
  background: var(--amber);
  color: var(--coal);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--coal);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .3s;
}
.nav.scrolled .nav__burger span {
  background: var(--coal);
}
.nav__burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(14,16,18,.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link {
    font-size: 1.3rem;
    color: rgba(255,255,255,.85);
  }
}


/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, var(--coal) 0%, #181c20 40%, #1f2429 100%);
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding-top: 6rem;
}
.hero__tag {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__heading em {
  font-style: italic;
  color: var(--amber);
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--mist);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .85rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--amber);
  color: var(--coal);
}
.btn--primary:hover {
  background: var(--amber-dim);
  box-shadow: 0 4px 24px rgba(212,145,58,.25);
}
.btn--ghost {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--zinc);
}
.btn--ghost:hover {
  border-color: var(--mist);
  color: #fff;
}
.btn--full { width: 100%; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
}
.hero__scroll span {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mist);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--zinc);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 40%;
  background: var(--amber);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -40%; }
  100% { top: 140%; }
}


/* ═══════════════════════════ ABOUT ═══════════════════════════ */
.about {
  padding: var(--section-py) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__desc {
  color: var(--zinc);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1rem;
}
.stat {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid #e8e9eb;
  border-radius: 8px;
}
.stat__number {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--coal);
}
.stat__suffix {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amber);
  margin-left: .15rem;
}
.stat__label {
  display: block;
  font-size: .78rem;
  color: var(--mist);
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .about__stats { grid-template-columns: 1fr; }
}


/* ═══════════════════════════ SERVICES ═══════════════════════════ */
.services {
  padding: var(--section-py) 0;
  background: var(--white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid #e8e9eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.service-card__img {
  height: 220px;
  overflow: hidden;
}
.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-card__img img {
  transform: scale(1.06);
}
.service-card__body {
  padding: 1.5rem;
}
.service-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .5rem;
  color: var(--coal);
}
.service-card__body p {
  font-size: .92rem;
  color: var(--zinc);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════ EXPERTISE ═══════════════════════════ */
.expertise {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}
.expertise__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--coal) 0%, #1a1e22 50%, #1f2327 100%);
  z-index: 0;
}
.expertise .container { position: relative; z-index: 1; }

.expertise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.expertise__desc {
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.75;
}
.expertise__side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.expertise__card {
  padding: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  transition: background .3s, border-color .3s;
}
.expertise__card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(212,145,58,.25);
}
.expertise__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--amber-glow);
  color: var(--amber);
  margin-bottom: .75rem;
}
.expertise__card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .35rem;
}
.expertise__card p {
  font-size: .88rem;
  color: var(--mist);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .expertise__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}


/* ═══════════════════════════ GALLERY ═══════════════════════════ */
.gallery {
  padding: var(--section-py) 0;
}
.gallery__filter {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.gallery__filter-btn {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem 1.2rem;
  border: 1px solid #ddd;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .02em;
  color: var(--zinc);
}
.gallery__filter-btn.active,
.gallery__filter-btn:hover {
  background: var(--coal);
  color: #fff;
  border-color: var(--coal);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,16,18,0);
  transition: background .35s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover .gallery__overlay { background: rgba(14,16,18,.2); }

@media (max-width: 900px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,12,14,.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity .2s;
  opacity: .7;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1.5rem; font-size: 2.5rem; }
.lightbox__prev   { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__next   { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }


/* ═══════════════════════════ INSTAGRAM ═══════════════════════════ */
.instagram {
  padding: 3rem 0;
  background: var(--white);
}
.instagram__cta {
  font-size: 1rem;
  color: var(--mist);
}
.instagram__cta a {
  color: var(--amber);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.instagram__cta a:hover { color: var(--amber-dim); }


/* ═══════════════════════════ CONTACT ═══════════════════════════ */
.contact {
  padding: var(--section-py) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: .5rem;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.contact__detail svg {
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--amber);
}
.contact__detail strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--coal);
  letter-spacing: .02em;
}
.contact__detail p {
  font-size: .92rem;
  color: var(--zinc);
}
.contact__detail a {
  transition: color .2s;
}
.contact__detail a:hover { color: var(--amber); }

/* Form */
.contact__form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  border: 1px solid #e4e6e8;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__group {
  margin-bottom: 1.25rem;
}
.form__group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--coal);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form__group input,
.form__group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .92rem;
  padding: .75rem 1rem;
  border: 1px solid #d8dadd;
  border-radius: 5px;
  background: var(--cream);
  color: var(--coal);
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form__group textarea { resize: vertical; }
.form__note {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--mist);
  text-align: center;
}

/* Honeypot: out of sight for people, still in the DOM for bots that fill
   every input they find. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form feedback. index.html is static, so contact.php answers with a redirect
   to #sent, #form-error or #send-failed and :target reveals the matching
   message — no JS, and the visitor lands back on the form. */
.form__status {
  display: none;
  margin-bottom: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
  font-size: .88rem;
  line-height: 1.55;
}
.form__status:target { display: block; }
.form__status--ok {
  background: var(--ok-bg);
  border-left-color: var(--ok);
  color: var(--ok);
}
.form__status--error {
  background: var(--danger-bg);
  border-left-color: var(--danger);
  color: var(--danger);
}
.form__status a { color: inherit; text-decoration: underline; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
  .contact__form { padding: 1.75rem; }
}


/* ═══════════════════════════ MAP ═══════════════════════════ */
.map {
  width: 100%;
  line-height: 0;
  filter: grayscale(.85) contrast(1.1);
  transition: filter .4s;
}
.map:hover { filter: grayscale(.3) contrast(1); }
.map iframe { width: 100%; height: 400px; border: 0; }


/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer {
  background: var(--coal);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  opacity: .8;
}
.footer__brand p {
  font-size: .88rem;
  color: var(--mist);
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer__col a {
  display: block;
  font-size: .88rem;
  color: var(--mist);
  padding: .2rem 0;
  transition: color .2s;
}
.footer__col a:hover { color: var(--amber); }
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.footer__bottom p {
  font-size: .8rem;
  color: var(--zinc);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════ WHATSAPP FAB ═══════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .25s, box-shadow .25s;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
}
