/* HAVISUN Technologies Inc. - shared stylesheet (used by every page) */
/* ---------- Design tokens ---------- */
:root {
  --navy-900: #081730;
  --navy-800: #0b1f3a;
  --navy-700: #12315c;
  --blue-600: #1f4f99;
  --blue-500: #2f6bc9;
  --gold-500: #f2b134;
  --gold-400: #f6c660;
  --slate-900: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, .08);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, .10);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-500); margin-bottom: .9rem;
}
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--slate-500); font-size: 1.05rem; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900);
  padding: .6rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  padding: .9rem 1.7rem; border-radius: 10px; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px rgba(242, 177, 52, .35); }
.btn-primary:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 23, 48, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--white); line-height: 0; }
.brand svg { display: block; width: 46px; height: 46px; flex: none; }
.brand .wordmark { width: 158px; height: 42.2px; }
@media (max-width: 400px) {
  .brand svg { width: 40px; height: 40px; }
  .brand .wordmark { width: 133px; height: 35.5px; }
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--gold-400); }
.nav-links .btn { padding: .55rem 1.1rem; font-size: .9rem; color: var(--navy-900); }
.nav-links .btn:hover { color: var(--navy-900); }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--white); position: relative; transition: .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 107, 201, .45), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(242, 177, 52, .12), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(var(--white) 1px, transparent 1px), linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.8rem); margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 580px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--gold-500); line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

.hero-visual { display: grid; place-items: center; }
.hero-visual svg { width: min(100%, 380px); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.spin { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Services ---------- */
.services { background: var(--slate-50); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.cards.cards--four { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cards--four .card { padding: 2rem 1.5rem; }
.cards--four .card h3 { font-size: 1.15rem; }
@media (max-width: 1100px) { .cards.cards--four { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
.card {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--gold-500)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card:hover::after { transform: scaleX(1); }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: var(--gold-400);
}
.icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--slate-500); font-size: .98rem; }
.card ul { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.card li { display: flex; gap: .6rem; align-items: flex-start; }
.card li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); margin-top: .5em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.about p { color: var(--slate-500); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.value {
  padding: 1.4rem; border-radius: var(--radius); background: var(--navy-800); color: var(--white);
}
.value:nth-child(2), .value:nth-child(3) { background: var(--slate-100); color: var(--slate-700); }
.value h3 { color: inherit; font-size: 1.05rem; margin-bottom: .35em; }
.value:first-child h3, .value:last-child h3 { color: var(--gold-400); }
.value p { margin: 0; font-size: .9rem; color: inherit; opacity: .85; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-info p { color: rgba(255, 255, 255, .75); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; color: rgba(255, 255, 255, .88); }
.contact-list .dot { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--gold-400); flex: none; }
.contact-list svg { width: 20px; height: 20px; }

form {
  background: var(--white); color: var(--slate-700); padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; }
label .req { color: #c0392b; }
input, textarea {
  width: 100%; font: inherit; color: var(--slate-900); padding: .8rem 1rem;
  border: 1.5px solid var(--slate-300); border-radius: 10px; background: var(--slate-50);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 4px rgba(47, 107, 201, .15); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; background: #fff7f6; }
.error { display: none; color: #c0392b; font-size: .8rem; margin-top: .35rem; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot */
form .btn { width: 100%; }
.form-note { font-size: .78rem; color: var(--slate-500); margin: .9rem 0 0; text-align: center; }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f6ee; color: #1b6b3a; }
.form-status.err { background: #fdecea; color: #a12a1f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); font-size: .9rem; padding: 3rem 0 1.8rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-top p { max-width: 320px; margin: .8rem 0 0; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links h4 { color: var(--white); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a:hover { color: var(--gold-400); }
.footer-bottom a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; font-size: .82rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual svg { width: 220px; }
  .cards, .cards.cards--four { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-links .btn { margin-top: 1rem; width: 100%; padding: .85rem; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .values { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
  

/* ---------- Content pages (Privacy, Terms, ...) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 107, 201, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .35em; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .75); }
.page-hero .eyebrow { color: var(--gold-400); }

.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.doc { max-width: 860px; }
.doc a { color: var(--blue-500); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--navy-700); }
.toc { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.toc h2 { margin: 0 0 .8rem; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; font-size: .93rem; }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc section { margin-bottom: 2.2rem; }
.doc h2 { font-size: 1.35rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.doc h3 { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.note { background: #fff8e6; border-left: 4px solid var(--gold-500); padding: .9rem 1.1rem; border-radius: 8px; margin: 1rem 0; }
@media (max-width: 700px) { .toc ol { columns: 1; } }
