/* ============================================
   R.R. Enterprises – White & elegant theme
   Logo blue (#294867) as accent only
   ============================================ */

:root {
  /* Logo colour – accent only */
  --accent: #294867;
  --accent-light: #3a5a7a;
  --accent-soft: rgba(41, 72, 103, 0.12);

  /* Light theme */
  --bg-main: #fafbfc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-warm: #f8f9fa;

  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(41, 72, 103, 0.25);

  --text: #1a1d21;
  --text-muted: #5c6269;
  --text-subtle: #8b9199;

  --white: #ffffff;
  --transition: 0.25s ease;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-accent);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 0 1.5rem;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid transparent;
    box-shadow: none;
  }

  .nav-menu.active {
    max-height: 320px;
    padding: 1.5rem;
    border-bottom-color: var(--border);
    box-shadow: var(--shadow);
  }
}

/* ========== Banner ========== */
.banner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--bg-warm);
  background-image: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-main) 100%);
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(250, 251, 252, 0.85) 50%,
    rgba(248, 249, 250, 0.95) 100%
  );
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.banner-title .highlight {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
}

.banner-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 600;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-soft);
  color:white;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-accent);
  border-radius: 12px;
  position: relative;
  display: none;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.5; top: 16px; }
}

/* ========== Sections ========== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

/* ========== About Us ========== */
.about {
  background: var(--bg-elevated);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 280px;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-lead {
  font-size: 1.08rem;
  color: var(--text) !important;
}

.about-highlights {
  list-style: none;
  margin-top: 1.5rem;
}

.about-highlights li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.about-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.about-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
  box-shadow: var(--shadow);
}

.about-stat {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-numbers {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* ========== Services ========== */
.services {
  background: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== Projects ========== */
.projects {
  background: var(--bg-elevated);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-warm);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Testimonials – Slider ========== */
.testimonials {
  position: relative;
  background: var(--bg-main);
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
      180deg,
      rgba(30, 53, 73, 0.88) 0%,
      rgba(41, 72, 103, 0.9) 50%,
      rgba(30, 53, 73, 0.88) 100%
    ),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=60');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials .section-title {
  color: #ffffff;
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.testimonials-slider {
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 2.5rem 2rem;
  margin: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.testimonial-slide p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-slide footer {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--bg-warm);
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-subtle);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonial-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ========== Contact ========== */
.contact {
  background: var(--bg-elevated);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--accent);
}

.contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.contact-info strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-subtle);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== Footer – dark blue ========== */
.footer {
  background: #1e3549;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem;
}

.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem 2rem;
  margin-bottom: 3rem;
  align-items: start;
  max-width: 1100px;
}

.footer-about {
  min-width: 0;
}

.footer-about h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item:last-child {
  margin-bottom: 0;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  margin: 0;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #294867;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: #3a5a7a;
}

.scroll-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.scroll-to-top svg {
  display: block;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
  }

  .footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-about p {
    max-width: none;
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    align-items: center;
  }

  .footer-links ul {
    text-align: center;
  }
}
