/* ============================================
   OTSE OPTIEK — Brand Theme
   Font:   Raleway
   Red:    #c72723
   Dark:   #454545
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --red:         #c72723;
  --red-hover:   #a81e1b;
  --dark:        #454545;
  --dark-hover:  #c72723;
  --black:       #000000;
  --white:       #ffffff;
  --cream:       #f7f5f2;
  --cream-dark:  #eeebe5;
  --border:      #ddd8cf;
  --text-muted:  #666666;

  --font:        'Raleway', sans-serif;
  --radius:      3px;
  --shadow:      0 4px 20px rgba(0,0,0,0.09);
  --transition:  0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a {
  color: var(--black);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--red); }

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.25;
  color: var(--red);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--black); font-weight: 400; }

/* ── LAYOUT ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: 4.5rem 0; }

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Hero sits BELOW the sticky header — no overlap.
   The sticky header pushes content down naturally in flow,
   so no negative margin or padding tricks are needed.
   We just ensure hero does NOT use position:fixed or negative offsets. */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.site-logo img {
  height: 50px;
  width: auto;
}

/* ── NAV ── */
.site-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--red);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  height: 500px;          /* exact image height */
  display: flex;
  align-items: flex-end;  /* content at bottom of image */
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 1;             /* full image — no dimming */
}

/* Dark gradient at bottom so text is readable over the image */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

/* Subpage hero — same full-image style, 500px height */
.hero.hero-sub {
  height: 500px;
  align-items: flex-end;
}
.hero.hero-sub h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.hero-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.75); }
.hero-breadcrumb a:hover { color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.72rem 1.9rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(199,39,35,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── SECTION HEADING ── */
.section-heading {
  margin-bottom: 3rem;
}
.section-heading.centered { text-align: center; }
.section-heading .eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section-heading h2 { margin-bottom: 0.6rem; }
.section-heading p  { color: var(--text-muted); max-width: 600px; }
.section-heading.centered p { margin: 0 auto; }

.divider {
  width: 44px;
  height: 3px;
  background: var(--red);
  margin-top: 0.9rem;
}
.centered .divider { margin-left: auto; margin-right: auto; }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--red);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.13);
}

.card-image {
  height: 210px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-dark);
}

.card-body { padding: 1.8rem; }
.card-body h3 { color: var(--red); margin-bottom: 0.6rem; }
.card-body p  { font-size: 0.95rem; color: var(--black); margin-bottom: 1.5rem; line-height: 1.65; }

/* ── SERVICE ITEMS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.service-item h4 { color: var(--red); margin-bottom: 0.35rem; }
.service-item p  { font-size: 0.9rem; color: var(--black); line-height: 1.65; }

/* ── USP BLOCKS — 2×2 grid, equal sizing ── */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.usp-item {
  background: var(--white);
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow);
}
.usp-item .usp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.usp-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--dark);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 0.7rem; }
.cta-strip p  { color: rgba(255,255,255,0.7); margin-bottom: 1.8rem; font-size: 1.05rem; }

/* ── CONTACT SECTION ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color var(--transition);
  margin-bottom: 1.1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* Turnstile widget spacing */
.cf-turnstile { margin-bottom: 1.1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-message {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.form-message.success {
  background: #eaf6ec;
  border: 1px solid #6bbf72;
  color: #2a6030;
  display: block;
}
.form-message.error {
  background: #fdecea;
  border: 1px solid #e07070;
  color: #8b2020;
  display: block;
}

/* ── HOURS TABLE ── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 0.65rem 0; font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 500; }
.hours-table td:last-child  { text-align: right; color: var(--text-muted); }
.hours-table .closed td:last-child { color: #b05050; font-style: italic; }

/* ── CONTACT INFO ── */
.info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  align-items: flex-start;
}
.info-item .icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 1rem;
}

/* ── MAP ── */
.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.88);
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 0.8rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a  { color: rgba(255,255,255,0.88); }
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
}
.footer-bottom a { color: rgba(255,255,255,0.88); }
.footer-bottom a:hover { color: var(--red); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.55s ease both; }
.fade-up-2 { animation: fadeUp 0.55s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.55s 0.24s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  /* usp-grid stays 2×2 — it has room at this size */
}

@media (max-width: 768px) {
  .header-inner { padding: 0.8rem 1.2rem; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark);
    padding: 0.5rem 0 1rem;
    border-top: 2px solid var(--red);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .site-nav.open { display: block; }
  .site-nav ul   { flex-direction: column; gap: 0; }
  .site-nav a    { padding: 0.8rem 1.5rem; }

  .nav-toggle { display: flex; }

  .contact-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner  { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .form-row      { grid-template-columns: 1fr; }
  section        { padding: 3rem 0; }
  .container     { padding: 0 1.2rem; }

  /* Why Otse: stack text + usp grid vertically on mobile */
  .why-otse-grid { grid-template-columns: 1fr !important; }

  /* Hero height reduction on mobile */
  .hero, .hero.hero-sub { height: 320px; }
}

@media (max-width: 480px) {
  /* usp-grid drops to 1 column only on very small screens */
  .usp-grid { grid-template-columns: 1fr; }
}
