/* ===== RIDHUSVERKET - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #1B2A4A;
  --navy-dark: #131E35;
  --gold: #C8973E;
  --gold-light: #D4A94E;
  --cream: #F5F0E8;
  --cream-light: #FAF7F2;
  --white: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #6B6B6B;
  --text-on-dark: #E8E4DC;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 600;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

/* Header CTA button — overrides nav-links a defaults */
.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(200, 151, 62, 0.25);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 151, 62, 0.4);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(19,30,53,0.5) 0%,
    rgba(19,30,53,0.3) 50%,
    rgba(19,30,53,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(19,30,53,0.4) 0%,
    rgba(19,30,53,0.6) 100%
  );
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-cream { background: var(--cream-light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .text-light { color: var(--text-on-dark); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto;
}

.section-header p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-navy .section-header p { color: var(--text-on-dark); }

/* ===== TWO-COLUMN LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-image {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 350px;
}

.split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.split-text .accent-line {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 20px;
}

.split-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.split-text ul {
  list-style: none;
  margin: 20px 0;
}

.split-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-light);
}

.split-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 2px;
  background: var(--gold);
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-card-image {
  height: 240px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-card-image img { transform: scale(1.05); }

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-link::after {
  content: '→';
  transition: transform 0.3s;
}

.card-link:hover::after { transform: translateX(4px); }

/* ===== IMAGE GALLERY / GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center;
  padding: 80px 24px;
  background: var(--navy);
  color: var(--white);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-on-dark);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ===== FEATURES ICONS ROW ===== */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.feature-item svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--gold);
}

.feature-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== PRODUCT SECTIONS (Ridhus page) ===== */
.product-section {
  padding: 80px 0;
}

.product-section:nth-child(even) { background: var(--cream-light); }

.product-header {
  margin-bottom: 40px;
}

.product-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.product-header .accent-line {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 16px;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
}

.process-step h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--text);
  font-weight: 500;
}

.contact-detail a:hover { color: var(--gold); }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #DDD;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: var(--text-on-dark);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { font-size: 1.2rem; margin-bottom: 16px; display: block; }

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}

.footer-col ul li a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-image { order: -1; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .features-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 24px;
    gap: 20px;
  }
  .menu-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .features-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 500px; }
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
