/* ============================================
   Harborview Cleaning, Styles
   Palette extracted from logo:
     Navy     #1B2A4E (primary)
     Charcoal #3A4A6B (deep accent)
     Sage     #9BB3C7 (hydrangea blue, secondary)
     Cream    #F5F1EA (background neutral)
   ============================================ */

:root {
  --navy: #1B2A4E;
  --navy-deep: #131F3A;
  --charcoal: #3A4A6B;
  --sage: #9BB3C7;
  --sage-soft: #C7D4DF;
  --cream: #F5F1EA;
  --cream-warm: #EFE9DD;
  --white: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #4B5872;
  --line: rgba(27, 42, 78, 0.12);
  --line-strong: rgba(27, 42, 78, 0.22);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 24px 48px rgba(20, 33, 61, 0.12);

  --container: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

em { font-style: italic; color: var(--sage); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 18px;
}

.eyebrow-dark { color: var(--charcoal); }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-icon { display: inline-flex; }
.btn-icon svg { width: 18px; height: 18px; }

/* ============================================
   Navbar
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.nav-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-logo .nav-logo-scrolled {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.nav.scrolled .nav-logo .nav-logo-hero { opacity: 0; }
.nav.scrolled .nav-logo .nav-logo-scrolled {
  opacity: 1;
  height: 72px;
}
.nav.scrolled .nav-logo img { height: 72px; }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav.scrolled .nav-links a { color: var(--navy); }

.nav-cta {
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.nav.scrolled .nav-cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.nav.scrolled .nav-cta:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-wordmark { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  display: block;
}

/* Default: show videos on desktop, hide still */
.hero-video { display: block; }
.hero-still { display: none; }

/* Two video crossfade: A always visible by default, B fades in near end */
.hero-video-a { opacity: 1; }
.hero-video-b { opacity: 0; }
.hero-video-a, .hero-video-b {
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.hero-video-wrap.is-fading .hero-video-a { opacity: 0; }
.hero-video-wrap.is-fading .hero-video-b { opacity: 1; }

@media (max-width: 768px) {
  .hero { min-height: 640px; }
  /* Mobile: still serve só como poster até o vídeo carregar; vídeo continua rodando */
  .hero-still { display: none; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 90%, rgba(19, 31, 58, 0.85) 0%, rgba(19, 31, 58, 0) 60%),
    linear-gradient(180deg,
      rgba(19, 31, 58, 0.45) 0%,
      rgba(19, 31, 58, 0.20) 30%,
      rgba(19, 31, 58, 0.45) 65%,
      rgba(19, 31, 58, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 90px;
  padding-top: 130px;
  color: var(--white);
}

.hero-logo {
  width: clamp(140px, 15vw, 200px);
  height: auto;
  margin: 0 auto 24px;
}

.hero-title {
  color: var(--white);
  max-width: 900px;
  margin: 0 0 18px;
  font-weight: 400;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero-title em {
  font-style: italic;
  color: var(--sage-soft);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* CTA primário: outline branco fino, elegante */
.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
.cta-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* Telefone: link cream limpo, sem underline */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(245, 241, 234, 0.95);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.cta-phone:hover {
  color: var(--white);
}
.cta-phone-icon {
  display: inline-flex;
  opacity: 0.85;
}
.cta-phone-icon svg { width: 16px; height: 16px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}
.scroll-cue svg { width: 28px; height: 28px; }
.scroll-cue:hover { color: var(--white); }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 768px) {
  .hero { min-height: 640px; }
  .hero-content {
    padding-bottom: 64px;
    padding-top: 104px;
  }
  .hero-logo {
    width: 100px;
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.025em;
    padding: 0;
  }
  .hero-title em { display: block; line-height: 1.12; font-size: 1.55rem; margin-top: 4px; }
  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 28px;
    line-height: 1.55;
    padding: 0 12px;
  }
  /* h2 menor que h1 no mobile pra manter hierarquia */
  h2 { font-size: 1.5rem; line-height: 1.2; }
  .hero-ctas { flex-direction: column; gap: 16px; }
  .cta-outline { padding: 13px 28px; font-size: 0.85rem; letter-spacing: 0.14em; }
  .cta-phone { font-size: 1rem; }
  .scroll-cue { display: none; }
}

/* ============================================
   Trust strip
   ============================================ */
.trust {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .trust { padding: 48px 0; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--cream-warm);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 { color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }

.service-card-cta {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta h3 { color: var(--white); }
.service-card-cta p { color: rgba(255,255,255,0.78); margin-bottom: 24px; }
.service-card-cta:hover { transform: translateY(-4px); }
.service-card-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  align-self: flex-start;
}
.service-card-cta .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services { padding: 80px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 30px 26px; }
}

/* ============================================
   Why Harborview
   ============================================ */
.why {
  padding: 120px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.why-list li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1rem;
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  width: 20px;
  height: 1px;
  background: var(--sage);
}
.why-list strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.why-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .why { padding: 80px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-image { order: -1; }
  .why-image img { height: 360px; }
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-copy h2 { margin-bottom: 24px; }
.about-copy p { font-size: 1.05rem; line-height: 1.75; }

.signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--charcoal);
  font-size: 1.1rem;
  margin-top: 24px !important;
}

@media (max-width: 900px) {
  .about { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-image img { height: 380px; }
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
  padding: 120px 0;
  background: var(--white);
  text-align: center;
}

.testimonial figure {
  max-width: 760px;
  margin: 0 auto;
}

.quote-mark {
  width: 48px;
  height: 48px;
  color: var(--sage);
  margin: 0 auto 24px;
  opacity: 0.7;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 28px;
}

.testimonial figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

@media (max-width: 768px) {
  .testimonial { padding: 80px 0; }
}

/* ============================================
   Service area
   ============================================ */
.area {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
}

.area-inner {
  max-width: 720px;
  margin: 0 auto;
}

.area p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

@media (max-width: 768px) {
  .area { padding: 72px 0; }
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--navy);
  color: var(--white);
}

.contact .eyebrow { color: var(--sage); }
.contact h2 { color: var(--white); margin-bottom: 16px; }
.contact p { color: rgba(255,255,255,0.78); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  transition: all 0.25s var(--ease);
}
.contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--sage);
  transform: translateX(4px);
}

.contact-btn-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.contact-btn-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
}

@media (max-width: 900px) {
  .contact { padding: 80px 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-btn-value { font-size: 1rem; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.footer-tag {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(245, 241, 234, 0.62);
}

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
}
.footer-copy { margin-top: 4px; opacity: 0.7; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
