/* ============================================================
   ONE STOP RE SHOP — Stylesheet
   Palette:
     Navy     #0D1B2A
     Gold     #C9A84C
     Gold Lt  #E8C76A
     Off-white #F7F5F0
     Slate    #4A5568
     Mist     #E8E4DC
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:      #0D1B2A;
  --navy-mid:  #16293E;
  --gold:      #C9A84C;
  --gold-lt:   #E8C76A;
  --off-white: #F7F5F0;
  --mist:      #E8E4DC;
  --slate:     #4A5568;
  --body-font: 'Inter', sans-serif;
  --display-font: 'Playfair Display', serif;
  --nav-height: 88px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--body-font);
  background-color: var(--off-white);
  color: var(--navy);
  margin: 0;
  overflow-x: hidden;
}

/* ---------- Utility ---------- */
.text-gold { color: var(--gold) !important; }

.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-family: var(--body-font);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline-light {
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-outline-light:hover {
  transform: translateY(-1px);
}

/* ---------- Navbar ---------- */
#mainNav {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  height: var(--nav-height);
}

#mainNav.scrolled {
  background-color: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding: 0.4rem 0.6rem;
}

#mainNav .nav-link:hover {
  color: var(--gold);
}

.toggler-icon {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.navbar-toggler {
  border: none;
  padding: 0;
  box-shadow: none !important;
}

/* ---------- Section Labels & Headings ---------- */
.section-label {
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Signature element: large angled gold stripe */
.hero-diagonal-accent {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(201,168,76,0.02) 100%);
  transform: skewX(-8deg);
  pointer-events: none;
  border-left: 2px solid rgba(201,168,76,0.18);
}

.hero-eyebrow {
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--display-font);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.75;
}

/* Hero stat card */
.hero-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.stat-number {
  font-family: var(--display-font);
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 0.25rem 0;
}

/* ---------- Services Section ---------- */
.section-light {
  background-color: var(--off-white);
}

.service-card {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.1);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.service-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1;
}

.service-title {
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--slate);
  line-height: 1.7;
  margin: 0;
}

/* ---------- About Section ---------- */
.section-dark {
  background-color: var(--navy);
}

.section-dark .section-heading {
  color: #fff;
}

.body-text {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.8;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-stat-num {
  font-family: var(--display-font);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.about-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.97rem;
  line-height: 1.5;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  transition: background 0.2s;
}

.about-feature:hover {
  background: rgba(255,255,255,0.07);
}

.about-feature i {
  flex-shrink: 0;
  font-size: 1.05rem;
  margin-top: 1px;
}

/* ---------- Contact Section ---------- */
.contact-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--mist);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--navy);
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

.contact-form textarea {
  resize: vertical;
}

/* Contact info */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-item i {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.1rem;
}

.contact-info-value {
  font-size: 0.97rem;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}

.contact-info-value:hover {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

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

/* ---------- Alerts ---------- */
.alert-success {
  background-color: #d1f7e0;
  border-color: #a6edca;
  color: #0e4d2b;
  border-radius: 6px;
}

.alert-danger {
  background-color: #fde8e8;
  border-color: #f5c2c2;
  color: #7b1c1c;
  border-radius: 6px;
}

/* ---------- Testimonials ---------- */
#testimonials {
  overflow: hidden;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  transition: opacity 0.35s ease;
}

.testimonial-track.fading {
  opacity: 0;
  pointer-events: none;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s ease;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
}

.t-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.t-quote-icon {
  color: var(--gold);
  opacity: 0.35;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.t-text {
  color: rgba(255,255,255,0.78);
  font-size: 0.97rem;
  line-height: 1.78;
  flex: 1;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: auto;
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.t-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* Arrows */
.t-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.t-arrow:hover:not(:disabled) {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  transform: scale(1.07);
}

.t-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Dots */
.t-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.t-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.t-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}

/* Responsive: 2 cards on tablet, 1 on mobile */
@media (max-width: 991.98px) {
  .testimonial-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .testimonial-track {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  #navbarNav {
    background-color: var(--navy);
    padding: 1rem 1.25rem 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  #navbarNav .nav-link {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  #navbarNav .btn-gold {
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 1rem);
    padding-bottom: 4rem;
  }

  .hero-diagonal-accent {
    opacity: 0.4;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center !important;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .btn-gold,
  .btn-outline-light,
  .about-feature {
    transition: none;
  }
  html { scroll-behavior: auto; }
}
