/* ============================================================
   Valley Industrial Wash — styles
   Palette pulled from the logo: navy, water-blue, eco-green, silver
   ============================================================ */

:root {
  /* Brand */
  --navy:        #0b1f33;
  --navy-2:      #12314f;
  --blue:        #1f8fd6;   /* water blue */
  --blue-dark:   #1573b0;
  --green:       #7cb63f;   /* eco green */
  --green-dark:  #6aa233;

  /* Light theme (default) */
  --bg:          #ffffff;
  --bg-alt:      #f3f6fa;
  --surface:     #ffffff;
  --text:        #16222e;
  --text-soft:   #4c5c6b;
  --border:      #e2e8f0;
  --header-bg:   rgba(255,255,255,.9);
  --shadow:      0 10px 30px rgba(11,31,51,.08);
  --shadow-lg:   0 20px 50px rgba(11,31,51,.14);
  --accent:      var(--blue);
  --accent-2:    var(--green);
}

html[data-theme="dark"] {
  --bg:          #0a1622;
  --bg-alt:      #0f2132;
  --surface:     #12283c;
  --text:        #e8eef5;
  --text-soft:   #a3b4c4;
  --border:      #1e3855;
  --header-bg:   rgba(10,22,34,.85);
  --shadow:      0 10px 30px rgba(0,0,0,.35);
  --shadow-lg:   0 20px 50px rgba(0,0,0,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

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

.container { width: min(1200px, 92%); margin-inline: auto; }

h1,h2,h3,h4 { font-family: 'Barlow Condensed', 'Inter', sans-serif; line-height: 1.1; letter-spacing: .3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .72rem 1.4rem; border-radius: 10px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(31,143,214,.35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25d366; color: #072b16; font-weight: 700; }
.btn-whatsapp:hover { background: #1eb858; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: 88px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { height: 60px; width: 60px; border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.55rem; letter-spacing: .5px; color: var(--text); text-transform: uppercase; white-space: nowrap; }
.brand-accent { color: var(--blue); }
.brand-tag { font-size: .62rem; letter-spacing: 2.2px; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { font-weight: 600; color: var(--text-soft); padding: .3rem 0; position: relative; }
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; min-width: 40px; padding: 0 .6rem;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text); cursor: pointer;
  font-weight: 700; font-size: .85rem;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 40px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { width: 20px; height: 2px; background: var(--text); transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,18,30,.92) 0%, rgba(9,24,40,.78) 45%, rgba(11,31,51,.55) 100%); }
.hero-content { position: relative; max-width: 760px; padding: 5rem 0; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .82rem; font-weight: 700; color: var(--green); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d7e2ee; margin-bottom: 2rem; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; font-weight: 600; font-size: .95rem; color: #eaf1f8; }
.hero-badges li { white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .8rem; }
.section-lead { color: var(--text-soft); font-size: 1.08rem; }
.group-title { font-size: 1.5rem; margin: 2.4rem 0 1.2rem; padding-left: .8rem; border-left: 4px solid var(--green); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.8rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.card h4 { font-size: 1.35rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; }
/* Before/after composites: show the whole image (no crop) so both panels & labels stay visible */
.gallery-item.show-full { align-self: start; }
.gallery-item.show-full img { height: auto; aspect-ratio: auto; object-fit: contain; }
.gallery-item:hover img { transform: scale(1.05); }
.h-captcha { margin: .2rem 0 1.1rem; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(7,18,30,.88));
  color: #fff; padding: 1.4rem 1rem .9rem; font-weight: 600; font-size: .95rem;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.about-media img { border-radius: 18px; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.about-text p { color: var(--text-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.about-points { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: .6rem; }
.about-points li { font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.contact-list { list-style: none; margin: 2rem 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); font-weight: 700; }
.contact-list a { font-weight: 600; color: var(--text); }
.contact-list a:hover { color: var(--accent); }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,143,214,.15);
}
.form-status { margin-top: 1rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: #e0483a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd9e5; padding-top: 3.5rem; }
html[data-theme="dark"] .site-footer { background: #06111c; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo { height: 54px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand p { color: #9fb2c4; max-width: 280px; }
.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a:hover { color: var(--blue); }
.footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-contact a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .88rem; color: #8397a9; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .btn-quote { display: none; }
  .main-nav {
    position: fixed; inset: 92px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 6%; margin: 0;
    transform: translateY(-150%); transition: transform .3s ease;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin: 0 auto; }
  .gallery-item.wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { height: 72px; }
  .brand-mark { height: 46px; width: 46px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tag { display: none; }
  .main-nav { inset: 72px 0 auto 0; }
  .hero { min-height: 88vh; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
