/* ============================================
   COASTAL SHOWER PROS — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy: #0B4F6C;
  --teal: #1A8FA8;
  --teal-light: #5FD3EC;
  --teal-pale: #E0F4F8;
  --white: #FFFFFF;
  --off-white: #F7FAFB;
  --sand: #F2EDE4;
  --charcoal: #2C3E46;
  --gray: #6B7C82;
  --gray-light: #D8E4E8;
  --accent: #C8860A;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { font-size: 1.05rem; color: var(--charcoal); }

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

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11, 79, 108, 0.97);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

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

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
}

.nav-logo-text .brand-sub {
  font-size: 0.65rem;
  color: var(--teal-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--teal-light); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--teal-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--teal-light) !important; color: var(--navy) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11,79,108,0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}

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

.btn-dark {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

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

/* ---- SECTION LAYOUT ---- */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.container { max-width: 1180px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1.25rem; }
.section-title span { color: var(--teal); }

.section-intro {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 3rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 79, 108, 0.82) 0%,
    rgba(11, 79, 108, 0.5) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--teal-light);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero h1 {
  color: white;
  margin-bottom: 1.25rem;
  max-width: 680px;
  animation: fadeUp 0.8s ease 0.4s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s ease 1.2s both;
}

.scroll-dot {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--navy);
  padding: 1.5rem 2rem;
}

.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.trust-icon {
  color: var(--teal-light);
  font-size: 1.1rem;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 24px rgba(11,79,108,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gray-light);
}

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

.service-card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.service-card-body {
  padding: 1.75rem;
}

.service-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.service-card h3 { margin-bottom: 0.6rem; color: var(--navy); }
.service-card p { font-size: 0.95rem; color: var(--gray); margin-bottom: 1.25rem; }

.service-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.service-link:hover { gap: 0.7rem; }

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,79,108,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

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

.gallery-caption {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---- TESTIMONIAL ---- */
.testimonial-section { background: var(--teal-pale); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(11,79,108,0.06);
  border-left: 4px solid var(--teal);
}

.stars { color: #F0A500; font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-text { font-style: italic; color: var(--charcoal); margin-bottom: 1rem; font-size: 0.97rem; }
.testimonial-author { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.testimonial-location { font-size: 0.8rem; color: var(--gray); }

/* ---- SERVICE AREAS ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.area-chip {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  transition: all 0.2s;
}

.area-chip:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 20px rgba(11,79,108,0.07);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(11,79,108,0.14);
}

.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-card-body { padding: 1.5rem; }

.blog-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--navy); }
.blog-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }
.blog-read-more { font-size: 0.8rem; color: var(--teal); font-weight: 700; letter-spacing: 0.08em; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--gray); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  font-size: 1.4rem;
  color: var(--teal);
  margin-top: 0.1rem;
}

.contact-detail-text strong { display: block; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contact-detail-text span { color: var(--charcoal); }

.contact-form {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(11,79,108,0.1);
  border: 1px solid var(--gray-light);
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.2s;
  background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: white;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner h2 { color: white; margin-bottom: 1rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-banner .btn { position: relative; }

/* ---- FOOTER ---- */
.footer {
  background: #071f2a;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

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

.footer-brand p { font-size: 0.9rem; margin-top: 1rem; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
}

.footer-logo-sub {
  font-size: 0.62rem;
  color: var(--teal-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d6585 100%);
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ---- BLOG POST ---- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.blog-article h1 { margin-bottom: 1rem; color: var(--navy); }
.blog-article .blog-meta { color: var(--gray); font-size: 0.85rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-light); }
.blog-article h2 { color: var(--navy); margin: 2rem 0 0.75rem; font-size: 1.5rem; }
.blog-article h3 { color: var(--navy); margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }
.blog-article p { margin-bottom: 1.25rem; }
.blog-article ul, .blog-article ol { margin: 0 0 1.25rem 1.5rem; }
.blog-article li { margin-bottom: 0.4rem; }

/* ---- UTILS ---- */
.bg-sand { background: var(--sand); }
.bg-pale { background: var(--teal-pale); }
.bg-navy { background: var(--navy); }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---- MOBILE NAV ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.wide { grid-column: span 1; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.tall { grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }

  .trust-bar .container { gap: 1.25rem; justify-content: flex-start; }
}
