/* ==========================================================================
   Gresilent Holding — static site stylesheet
   Sizes measured on the original site (desktop screenshot, 2339 px wide):
   header 155 px with a 480 px logo, hero 500 px with slideshow + dark overlay, three cards
   almost full width pulled 55 px over the hero, dark footer bar 75 px. Brand teal #089680, Roboto.
   Roboto is self-hosted (SIL Open Font License, see /assets/fonts/OFL-Roboto.txt). No external requests.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #089680;
  --teal-dark: #077a68;
  --ink: #3c3c3b;        /* logo grey, footer bar, headings */
  --text: #54595f;       /* body text */
  --paper: #ffffff;
  --hero-bg: #12395f;    /* shown behind the photos while they load or if they are missing */
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: max(16px, 2.4vw);   /* 57 px at 2339 px, like the original */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100%;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100;
  font-weight: 700; text-decoration: none; border-radius: 0 0 4px 4px;
}
.skip-link:focus { top: 0; }

.container { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header: logo only ---------- */
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; min-height: 155px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { width: 480px; max-width: 100%; height: auto; }
.brand-text { font-size: 96px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.brand-text b { color: var(--teal); }

/* ---------- Hero: photo slideshow + dark overlay + white text ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--hero-bg);
  min-height: 500px;            /* original hero height */
  padding: 145px 0 105px;       /* title 145 px from the top, like the original; bottom leaves room for the cards */
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(8, 24, 44, 0.42); }
.hero-content { position: relative; }
.hero h1 { font-size: 70px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; }
.hero-sub { font-size: 36px; font-weight: 700; line-height: 1.2; margin: 8px 0 14px; }
.hero-lead { font-size: 21px; line-height: 1.5; max-width: 64%; margin: 0; }

/* ---------- Three cards, pulled 55 px up over the hero ---------- */
.cards-wrap { padding-bottom: 60px; }
.cards {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
  margin-top: -55px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--teal);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  padding: 30px 40px 35px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.card-icon { width: 64px; height: 64px; color: var(--ink); margin-bottom: 8px; object-fit: contain; }
.card h2 { font-size: 32px; color: var(--ink); margin-bottom: 14px; }
.card p { margin-bottom: 16px; }
.card p:last-of-type { margin-bottom: 0; }
.card .btn { margin-top: 24px; width: 100%; }

/* ---------- Button (teal, uppercase, full width in cards) ---------- */
.btn {
  display: inline-block;
  background: var(--teal); color: #fff;
  font: 500 16px/1 var(--sans);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none; text-align: center;
  box-shadow: 0 4px 12px rgba(8, 150, 128, 0.35);
}
.btn:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Simple page (404) ---------- */
.simple { padding: 90px 0; }
.simple h1 { font-size: 44px; color: var(--ink); }
.simple p { font-size: 20px; max-width: 34em; margin: 16px 0 32px; }

/* ---------- Footer: dark bar ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  min-height: 75px;
  display: flex; align-items: center;
  font-size: 18px;
}
.site-footer p { margin: 0; }

/* ---------- Tablet (Elementor breakpoint: up to 1024 px) ---------- */
@media (max-width: 1024px) {
  .header-inner { min-height: 110px; }
  .brand img { width: 320px; }
  .brand-text { font-size: 64px; }
  .hero { min-height: 420px; padding: 90px 0 110px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 28px; }
  .hero-lead { font-size: 18px; max-width: 80%; }
  .cards { grid-template-columns: 1fr; gap: 20px; margin-top: -45px; }
  .card { padding: 26px 28px 30px; }
  .card h2 { font-size: 28px; }
}

/* ---------- Mobile (up to 767 px) ---------- */
@media (max-width: 767px) {
  .header-inner { min-height: 80px; }
  .brand img { width: 210px; }
  .brand-text { font-size: 42px; }
  .hero { min-height: 0; padding: 56px 0 84px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 22px; }
  .hero-lead { font-size: 16px; max-width: none; }
  .cards { margin-top: -40px; }
  .card { padding: 24px 20px 26px; }
  .card h2 { font-size: 26px; }
  .site-footer { font-size: 16px; padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@media print {
  .site-header, .site-footer, .btn, .hero-slides, .hero-overlay { display: none !important; }
  .hero { background: none; color: #000; min-height: 0; padding: 0; }
}
