@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  /* New 5-Color Palette from Reference Image */
  --clr-primary: #006994;    /* Deep Sea Blue - Main Brand */
  --clr-secondary: #61B1CC;  /* Sky Blue - Highlights/Hovers */
  --clr-accent-1: #CC9966;   /* Tan/Gold - Primary Action */
  --clr-accent-2: #C7A767;   /* Dull Gold - Decorative */
  --clr-neutral: #C0A37B;    /* Sage/Khaki - Backgrounds/Borders */
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --text-main: #002d3a;
  --text-muted: #475569;
  
  --header-bg: var(--clr-primary);
  --footer-bg: var(--clr-primary);
  
  /* Glassmorphism setup */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(192, 163, 123, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --padding-section: 6rem 1rem;
}

.section {
  padding: var(--padding-section);
}

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

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 4rem; color: #ffffff; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; text-align: center; color: var(--clr-primary); position: relative; padding-bottom: 1rem; }
h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--clr-accent-2); border-radius: 2px; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; color: var(--clr-primary); }
p { font-size: 1rem; color: var(--text-main); margin-bottom: 1rem; }
.text-accent { color: var(--clr-accent-1); }
.text-secondary { color: var(--clr-secondary); }

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.bg-white {
  background-color: var(--bg-section);
}

.bg-neutral {
  background-color: rgba(192, 163, 123, 0.08); /* Using the neutral Sage/Khaki color for sections */
  border-top: 1px solid rgba(192, 163, 123, 0.2);
  border-bottom: 1px solid rgba(192, 163, 123, 0.2);
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  background: #ffffff;
  border-bottom: 2px solid var(--clr-accent-1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-primary);
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-primary);
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--clr-primary);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 3px;
  background: inherit;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }

.mobile-menu-btn.active .hamburger { background: transparent !important; }
.mobile-menu-btn.active .hamburger::before { top: 0; transform: rotate(45deg); background: #ffffff; }
.mobile-menu-btn.active .hamburger::after { top: 0; transform: rotate(-45deg); background: #ffffff; }

/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 80px; /* Offset for solid header */
  height: calc(100vh - 80px);
  margin-bottom: 4rem;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content p {
  color: #f1f5f9;
  font-size: 1.15rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px; /* sharper buttons for structural feel */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--clr-accent-1);
  color: white;
  box-shadow: 0 4px 15px rgba(204, 153, 102, 0.3);
}

.btn-primary:hover {
  background: var(--clr-secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(97, 177, 204, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--clr-accent-1);
  color: var(--clr-accent-1);
}

.btn-outline:hover {
  background: var(--clr-accent-1);
  color: var(--clr-white);
}

.section .btn-outline {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.section .btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* Page Header (for inner pages) */
.page-header {
  padding: 10rem 1rem 6rem;
  text-align: center;
  position: relative;
  margin-top: 80px;
  margin-bottom: 4rem;
  background-size: cover;
  background-position: center;
  background-color: #74747400;
  background-blend-mode: overlay;
}

.page-header p {
  color: #f1f5f9;
  font-size: 1.1rem;
}

/* Grid Box Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* Service Cards */
.service-card {
  padding: 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-top: 4px solid var(--clr-primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-top-color: var(--clr-accent-1);
  background: linear-gradient(to bottom, #ffffff, rgba(97, 177, 204, 0.03));
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.service-card h4 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-primary);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Quality Banner */
.quality-banner {
  background: var(--clr-accent-1);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(204, 153, 102, 0.2);
}

.quality-banner h3 {
  color: #ffffff;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Testimonial Cards */
.testimonial-card {
  padding: 2rem;
  position: relative;
  background: #ffffff;
  border-left: 4px solid var(--clr-accent-1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(204, 153, 102, 0.15);
  font-family: serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Google Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid #dadce0;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-author-info {
  flex: 1;
  min-width: 0;
}

.review-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-meta {
  font-size: 0.72rem;
  color: #5f6368;
}

.review-source {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.4rem;
  color: #eab308;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.85rem;
  color: #3c4043;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.4rem;
  word-break: break-word;
}

.review-date {
  font-size: 0.75rem;
  color: #5f6368;
}

/* Write Review CTA */
.review-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #1a73e8;
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  font-family: var(--font-body);
}

.review-btn:hover {
  background: #1557b0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(192, 163, 123, 0.15); /* Using clr-neutral for icon background */
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--clr-neutral);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 105, 148, 0.1);
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #ffffff;
  padding: 4rem 1rem 1rem;
  border-top: 6px solid var(--clr-accent-1);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
}

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

.footer-widget h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 700;
}

.footer-widget .logo img {
  filter: brightness(0) invert(1);
}

.footer-widget .logo span {
  color: #e0f2fe;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 105, 148, 0.9), transparent 60%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #fff;
  margin-bottom: 0.2rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h4 {
  transform: translateY(0);
}

.gallery-overlay p {
  color: #e0f2fe;
  font-size: 0.85rem;
  margin-bottom: 0;
  transform: translateY(10px);
  transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Responsive Breakpoints - VERY IMPORTANT */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn { display: block; z-index: 1001; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
  }
  
  .nav-links.active { right: 0; }
  
  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .counter-container {
    flex-wrap: wrap;
    gap: 1rem !important;
  }
  
  .counter-container .glass {
    flex: 1 1 140px;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  /* Typography & Spacing */
  :root {
    --padding-section: 3rem 1rem;
  }
  
  .hero {
    min-height: 500px;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .contact-info-block {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; }
}
