/* ====== Theme: Royal Gold (Light) ====== */
:root{
  /* Surfaces */
  --bg: #f6f8fb;          /* page background */
  --bg-soft: #f1f3f7;     /* light section bg */
  --panel: #ffffff;       /* cards, header, footer */
  /* Text & lines */
  --text: #1f2430;
  --muted: #606a76;
  --line: rgba(0,0,0,.08);
  /* Brand gold */
  --gold:   #d4af37;
  --gold-2: #f4d66c;
  --gold-3: #a5862a;
  --black:  #0b0b0f;
  /* Radii & shadows tuned for light UI */
  --radius: 14px;
  --shadow-1: 0 8px 24px rgba(0,0,0,.08);
  --shadow-2: 0 18px 44px rgba(0,0,0,.12);
  /* Layout */
  --container: clamp(960px, 88vw, 1200px);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(212,175,55,.06), transparent 60%),
    radial-gradient(900px 400px at 100% 0%,   rgba(212,175,55,.05), transparent 60%),
    var(--bg);
  color:var(--text);
}

img{max-width:100%; display:block}
a{ color: var(--gold-3); text-decoration:none }
a:hover{ color:#111 }
p{ color: var(--text); line-height:1.7 }
h1,h2,h3,h4{ color:#111; margin:0 0 .6rem }
h1{ font-size: clamp(2rem, 3.2vw, 3rem); line-height:1.15 }
h2{ font-size: clamp(1.6rem, 2.4vw, 2.2rem) }
h3{ font-size: clamp(1.1rem, 1.6vw, 1.3rem) }

.container{ width:100%; max-width:var(--container); margin:0 auto; padding: 0 20px }

/* Utility */
.center{text-align:center}
.mt-24{margin-top:24px}
.small{ font-size:.92rem }
.muted{ color: var(--muted) }
.rounded{ border-radius: var(--radius) }
.shadow{ box-shadow: var(--shadow-1) }
.accent{
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  -webkit-background-clip:text; background-clip:text; color:transparent
}

/* Header */
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden }
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto; z-index:9999;
  background:#000; color:#fff; padding:8px 10px; border-radius:8px
}

.site-header{
  position:sticky; top:0; z-index:1000;
  backdrop-filter:saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  border-bottom:1px solid var(--line)
}
.site-header.is-scrolled{ box-shadow: var(--shadow-1) }
.top-rail{ height:3px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold-3)); }

.header-wrap{
  display:grid; grid-template-columns: auto 1fr auto auto; gap:20px; align-items:center; padding:14px 0;
}
.brand img{ filter: drop-shadow(0 4px 10px rgba(0,0,0,.10)); }

.main-nav ul{ list-style:none; display:flex; gap:18px; margin:0; padding:0; justify-content:center }
.nav-link{
  position:relative; padding:10px 12px; color:#454b55; transition:color .25s ease;
}
.nav-link::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px; height:2px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent); transform:scaleX(0); transition:transform .25s ease;
}
.nav-link:hover{ color:#111 }
.nav-link:hover::after{ transform:scaleX(1) }
.nav-link.is-active{ color:var(--gold-3) }
.nav-link.is-active::after{ transform:scaleX(1); background: linear-gradient(90deg, transparent, var(--gold-2), transparent) }

.nav-toggle{ display:none; width:44px; height:38px; background:transparent; border:1px solid var(--line); border-radius:10px; cursor:pointer }
.nav-toggle span{ display:block; height:2px; background:#111; margin:7px 8px; }

/* Buttons */
.btn{
  --btn-bg: var(--gold); --btn-fg: #111; --btn-bd: transparent;
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius: 999px; border:1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight:700; transition: all .25s ease; box-shadow: 0 8px 16px rgba(212,175,55,.25);
}
.btn:hover{ background:#000; color:var(--gold-2); border-color: #000; box-shadow: var(--shadow-1) }
.btn-ghost{ --btn-bg: transparent; --btn-fg: #111; --btn-bd: #d7dbe3; box-shadow:none }
.btn-ghost:hover{ background: var(--gold); color:#111; border-color:var(--gold) }
.btn-cta{ --btn-bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --btn-fg:#121212; border:0 }
.btn-small{ padding:9px 14px; font-size:.92rem }

/* Hero */
.hero{ padding: clamp(42px, 6vw, 84px) 0; border-bottom:1px solid var(--line) }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:36px; align-items:center }

/* DEFAULT hero text: dark */
.hero .hero-copy,
.hero h1, .hero h2, .hero h3,
.hero .lead,
.hero .hero-points li{ color: var(--text); }
.hero .lead{ color: var(--muted); }

/* Light version of the old "hero-dark" */
.hero-dark{
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(212,175,55,.10), transparent 60%),
    var(--bg-soft);
}

/* Image hero: (keep overlay; text now dark) */
.hero-image{
  background:
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.52)),
    url('../img/about-hero.webp') center/cover no-repeat;
}
.hero-image .hero-copy,
.hero-image h1,
.hero-image .lead,
.hero-image .hero-points li{ color: var(--text); }
.hero-image .lead{ color: var(--muted); }

/* Ghost buttons in HERO: dark gray text & border */
.hero-image .btn-ghost,
.hero-full  .btn-ghost{ --btn-fg: var(--text); --btn-bd:#999; }
.hero-image .btn-ghost:hover,
.hero-full  .btn-ghost:hover{ background: var(--gold); color:#111; border-color:var(--gold) }

/* Specific hero backgrounds */
.about-hero{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.48)),
    url('../img/about-hero.webp');
}
.services-hero{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.48)),
    url('../img/hero-marine.webp');
}

/* Hero UI bits */
.hero-ctas{ display:flex; gap:12px; margin-top:16px }
.hero-points{ display:flex; gap:16px; flex-wrap:wrap; padding:0; margin:14px 0 0; list-style:none }
.hero-media{ position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-2) }

/* Glass card tuned for light surfaces */
.glass-card{
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-radius: var(--radius); padding: 22px;
}

/* Sections & Cards */
.section{ padding: clamp(40px, 6vw, 84px) 0 }
.alt-bg{ background: linear-gradient(180deg, rgba(0,0,0,.02), transparent) }
.section-head{ text-align:center; margin-bottom: 26px }
.section-head h2{ position:relative; display:inline-block; padding-bottom:8px }
.section-head h2::after{
  content:""; position:absolute; left:15%; right:15%; bottom:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cards-4, .cards-3, .cards-2{ display:grid; gap:20px }
.cards-4{ grid-template-columns: repeat(4, 1fr) }
.cards-3{ grid-template-columns: repeat(3, 1fr) }
.cards-2{ grid-template-columns: 1fr 1fr }

.card{
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px; box-shadow: var(--shadow-1); position:relative; overflow:hidden;
}
.card-media{ border-radius: calc(var(--radius) - 6px); margin-bottom:12px }
.card-spec ul, .specs{ list-style: disc; padding-left: 18px; color:var(--muted) }
.link{ color: var(--gold-3); font-weight:600 }
.link:hover{ color:#111 }

.lift{ transition: transform .25s ease, box-shadow .25s ease }
.lift:hover{ transform: translateY(-6px); box-shadow: var(--shadow-2) }

/* Image Hover (zoom + gold tint fade) */
.img-zoom{ position:relative; overflow:hidden }
.img-zoom img{ transform: scale(1); transition: transform .6s ease }
.img-zoom:hover img{ transform: scale(1.06) }
.img-tint{
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(600px 240px at 70% 20%, rgba(212,175,55,.25), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.12));
  opacity:0; transition: opacity .4s ease;
}
.img-zoom:hover + .img-tint,
.img-zoom:hover .img-tint,
.img-zoom:hover ~ .img-tint{ opacity:1 }
.img-tint.small{ background: radial-gradient(420px 180px at 70% 20%, rgba(212,175,55,.18), transparent 60%) }

/* Services grid */
.grid.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.service h3{ margin-top:10px }
.service p{ color: var(--muted) }

/* CTA strip (subtle gold glints) */
.cta-strip{
  padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background: linear-gradient(90deg, rgba(212,175,55,.10), transparent 50%, rgba(212,175,55,.10))
}
.cta-grid{ display:grid; grid-template-columns: 1fr 1fr auto; gap:12px; align-items:center }

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 98%, transparent);
  padding: 28px 0
}
.foot-grid{ display:grid; grid-template-columns: 1.2fr .8fr 1fr; gap:20px; align-items:start }
.foot-nav{ display:flex; gap:14px; flex-wrap:wrap }
.foot-nav a{ color:#68707d }
.foot-nav a:hover{ color: var(--gold-3) }

/* Top Button & WhatsApp FAB */
.to-top{
  position:fixed; right:20px; bottom:96px; width:44px; height:44px; border-radius:50%;
  border:1px solid var(--line); background:#fff; color:#111; box-shadow: var(--shadow-1);
  opacity:0; pointer-events:none; transition: all .25s ease; z-index:950;
}
.to-top.show{ opacity:1; pointer-events:auto }
.to-top:hover{ background:#000; color:var(--gold-2); border-color:#000 }

.whatsapp-fab{
  position:fixed; right:20px; bottom:28px; width:56px; height:56px; border-radius:50%;
  background: linear-gradient(180deg, #25D366, #128C7E); display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 28px rgba(0,0,0,.18), 0 8px 18px rgba(18,140,126,.24); z-index:960;
}
.whatsapp-fab svg{ width:26px; height:26px; fill:#fff; transition: transform .25s ease }
.whatsapp-fab:hover svg{ transform: scale(1.08) }

/* Reveal animation */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease }
.in-view{ opacity:1 !important; transform:none !important }

/* Hidden helper */
.is-hidden{ display:none }

/* ===== Contact Page ===== */
.contact-grid{
  display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:start;
}
.contact-card{ padding: 18px 18px 22px }
.contact-form label{ display:block; margin:10px 0 6px; color:#2a3039; font-weight:600 }
.contact-form input,
.contact-form textarea{
  width:100%; background: #fff; color:#111;
  border:1px solid #e3e7ee; border-radius: 12px; padding:12px 14px;
  outline:none; transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea{ resize: vertical }
.contact-form input:focus, .contact-form textarea:focus{
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.contact-form .row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px }
.contact-actions{ display:flex; gap:12px; margin-top:14px; align-items:center }

.notice{
  border:1px solid #e3e7ee; border-left:4px solid; padding:12px 14px; border-radius:12px; margin-bottom:14px;
  background: #fff;
}
.notice.success{ border-left-color:#22c55e; color:#155e34; background:#eaf9f0 }
.notice.error{ border-left-color:#ef4444; color:#7a1717; background:#ffecec }
.notice ul{ margin:6px 0 0 18px; color:inherit }

.map-card h3{ margin-bottom:6px }
.map-embed{ margin-top:10px; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-1) }
.map-embed iframe{ width:100%; height:420px; border:0; display:block }

/* Contact info tiles (gold headings + white text on tasteful dark panel) */
.contact-info-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.info-card{
  background: linear-gradient(180deg, #1a1e25, #12161c);
  border: 1px solid rgba(0,0,0,.25);
  color:#fff;
}
.info-card h3{ margin-bottom:6px }
.contact-info-grid .info-card h3{
  color: var(--gold-2);
  text-align: center;
}
.contact-info-grid .info-card p{
  color: #fff;
  text-align: center;
}
.contact-info-grid .info-card p a{
  color: #fff !important; text-decoration: none;
}
.contact-info-grid .info-card p a:hover{
  color: #fff !important; text-decoration: underline;
}

/* Full-bleed background hero (photo) */
.hero-full{
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)),
    var(--hero-img, url('../img/hero-solar@1x.webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* HERO (photo) text now dark */
.hero-full .hero-copy,
.hero-full h1,
.hero-full .lead,
.hero-full .hero-points li{ color: var(--text); }
.hero-full .lead{ color: var(--muted) }

/* HiDPI */
@media (min-resolution: 1.5dppx){
  .hero-full{
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)),
      image-set(
        var(--hero-img, url('../img/hero-solar@1x.webp')) 1x,
        var(--hero-img-2x, url('../img/hero-solar@2x.webp')) 2x
      );
  }
}

/* Mobile portrait hero */
@media (max-width: 680px){
  .hero-full{
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.60)),
      var(--hero-img-mobile, var(--hero-img, url('../img/hero-solar@1x.webp')));
    min-height: 90svh;
  }
}

/* Keep single-column grid inside full photo hero */
.hero-overlay-only.hero-grid{ grid-template-columns: 1fr; }

/* Stronger glass on busy photos */
.hero-full .glass-card{
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-color: color-mix(in srgb, var(--line) 95%, transparent);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards-4{ grid-template-columns: 1fr 1fr }
  .cards-3{ grid-template-columns: 1fr 1fr }
  .cards-2{ grid-template-columns: 1fr }
  .grid.services-grid{ grid-template-columns: 1fr 1fr }
  .cta-grid{ grid-template-columns: 1fr; text-align:center }
  .foot-grid{ grid-template-columns: 1fr; text-align:center }
  .header-wrap{ grid-template-columns: auto auto auto; }
  .main-nav{ display:none; }
  .main-nav.open{
    display:block; position:absolute; left:0; right:0; top:100%;
    background:#fff; border-top:1px solid var(--line)
  }
  .main-nav ul{ flex-direction:column; padding:10px 16px }
  .nav-toggle{ display:inline-block }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-form .row{ grid-template-columns: 1fr; }
  .map-embed iframe{ height:360px }
}

@media (max-width: 560px){
  .cards-4, .cards-3{ grid-template-columns: 1fr }
  .grid.services-grid{ grid-template-columns: 1fr }
  .contact-info-grid{ grid-template-columns: 1fr; }
}