/* 
  RGH Transporti 
  Vanilla CSS - Mobile First 
*/

:root {
  --bg: #0E0B08;     /* near-black, warm undertone */
  --surface: #1A130D; /* card surfaces */
  --gold: #E8B339;   /* CTA, logo, primary accent */
  --saddle: #8B5A2B; /* secondary accent */
  --cream: #F4ECDD;  /* primary text */
  --mute: #A89B82;   /* secondary text */

  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================
   RESET & BASE 
========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-mute { color: var(--mute); }

/* =========================================
   UTILITIES
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: #f0c558; /* slightly lighter gold */
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background-color: rgba(232, 179, 57, 0.1);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* =========================================
   HEADER 
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  padding: 1.25rem 0;
}

.header.scrolled {
  background-color: rgba(14, 11, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.d-none-mobile {
  display: none;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 1001; /* Above mobile menu */
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .hamburger-line:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
}

.mobile-cta {
  margin-top: 1rem;
}

.mobile-phone-text {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* =========================================
   HERO 
========================================= */
.hero {
  min-height: 90vh;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
}

.hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--mute);
  font-size: clamp(1rem, 4vw, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.primary-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.raw-phone {
  font-size: 0.875rem;
  color: var(--cream);
  opacity: 0.8;
  padding-left: 1rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  padding: 0 1.5rem 2rem;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0 1.5rem 2rem;
  border-radius: 8px;
  background: linear-gradient(to top, var(--gold), transparent);
  opacity: 0.08;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Marquee */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 0;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  color: var(--mute);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.marquee span {
  padding-right: 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; white-space: normal; text-align: center; flex-wrap: wrap; justify-content: center; }
  .marquee span { padding: 0.25rem 0.5rem; }
}

/* =========================================
   STORITVE 
========================================= */
.storitve {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.storitve-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.storitve-intro h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.5rem;
}

.storitve-subline {
  color: var(--mute);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.specs {
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.dot {
  color: var(--gold);
  margin: 0 0.5rem;
}

.center-cta {
  display: flex;
  justify-content: center;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.service-tile {
  background-color: var(--surface);
  border: 1px solid rgba(232, 179, 57, 0.12);
  border-radius: 10px;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  transition: all 0.2s ease;
}

.tile-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  margin-bottom: 1rem;
}

.service-tile h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-tile p {
  color: var(--mute);
  font-size: 0.9375rem;
}

/* =========================================
   O MENI 
========================================= */
.o-meni {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  background-color: var(--surface);
}

.about-grid {
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image-wrapper {
  width: 100%;
}

.placeholder-box {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--bg);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.owner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Fallback visible text */
.placeholder-text {
  color: var(--mute);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 0;
}

.about-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--mute);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

/* =========================================
   KONTAKT 
========================================= */
.kontakt {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  max-width: 1024px;
  margin: 0 auto;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.kontakt-left h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.giant-phone {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.giant-phone:hover {
  text-decoration: underline;
}

.kontakt-email {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--cream);
}

.kontakt-email:hover {
  color: var(--gold);
}

.kontakt-hours {
  color: var(--mute);
  margin-bottom: 0.5rem;
}

.kontakt-response {
  color: var(--cream);
  font-weight: 500;
}

.kontakt-right {
  display: flex;
  align-items: center;
}

.kontakt-right p {
  font-size: 1.125rem;
  color: var(--mute);
  line-height: 1.6;
}

/* =========================================
   FAQ 
========================================= */
.faq {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  background-color: var(--surface);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-item summary {
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  position: relative;
  outline: none;
  color: var(--cream);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--mute);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* =========================================
   FOOTER 
========================================= */
.footer {
  padding: 4rem 1.5rem 2rem;
  background-color: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col.links a {
  color: var(--mute);
  transition: color 0.2s;
}

.footer-col.links a:hover {
  color: var(--gold);
}

.footer-col.info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-phone {
  font-size: 1.25rem;
  color: var(--cream);
}

.footer-email {
  color: var(--mute);
  margin-bottom: 1rem;
}

.company-details {
  color: var(--mute);
  font-size: 0.875rem;
  opacity: 0.6;
}

.tagline {
  color: var(--mute);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--mute);
  font-size: 0.75rem;
}


/* =========================================
   MEDIA QUERIES 
========================================= */
@media (min-width: 768px) {
  .hero {
    padding-top: 6rem;
  }
  
  .hero-split {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
  }
  
  .hero-content {
    padding-left: 3rem;
  }
  
  .hero-image-wrapper {
    padding: 0 3rem 0 0;
  }
  
  .hero-image-wrapper::after {
    inset: 0 3rem 0 0;
  }

  .hero-ctas {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 40% 1fr;
  }
  
  .kontakt-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cream);
    transition: color 0.2s;
  }
  
  .nav-link:hover {
    color: var(--gold);
  }
  
  .d-none-mobile {
    display: inline-flex;
  }
  
  .hamburger {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero-content {
    padding-left: 4rem;
  }
}

@media (hover: hover) {
  .service-tile:hover {
    border-color: var(--saddle);
    transform: translateY(-2px);
  }
}
