/* ============================================================
   Coastal Property Solutions — Global Stylesheet
   Direction: grounded, trade-honest, coastal-navy
   ============================================================ */

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

:root{
  --navy: #1B2A44;
  --navy-tint: #263A57;
  --paper: #FAF8F3;
  --white: #FFFFFF;
  --orange: #E8752C;
  --orange-dark: #C6621F;
  --teal: #1F6E5C;
  --charcoal: #22262B;
  --charcoal-soft: #4B5158;
  --line: rgba(27,42,68,0.12);

  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1140px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1{ font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p{ margin: 0 0 1em; max-width: 62ch; }
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-solid{
  background: var(--orange);
  color: var(--white);
}
.btn-solid:hover{ background: var(--orange-dark); }
.btn-outline{
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy{
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover{ background: var(--navy); color: var(--white); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand img{ height: 52px; width: auto; }
.brand-text{
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.1;
}
.brand-text span{
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
  margin-right: 30px;
}
.main-nav a:last-of-type{ margin-right: 0; }
.main-nav a.nav-phone{ margin-right: 0; }
.main-nav a[aria-current="page"]{ color: var(--navy); font-weight: 600; }
.main-nav a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--orange);
}
.nav-phone{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  color: var(--white);
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(19,29,48,0.94) 0%, rgba(27,42,68,0.82) 45%, rgba(27,42,68,0.55) 100%);
}
.hero-content{ position: relative; max-width: 620px; }
.hero-content h1{ color: var(--white); }
.hero-eyebrow{
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero p{ color: rgba(255,255,255,0.86); font-size: 1.08rem; }
.hero-actions{ display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust{
  margin-top: 34px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}
.hero-trust strong{ color: var(--white); }

/* ---------- Sections ---------- */
.section{ padding: 88px 0; }
.section-paper{ background: var(--paper); }
.section-navy{ background: var(--navy); color: rgba(255,255,255,0.9); }
.section-navy h2{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,0.78); }
.section-head{ max-width: 620px; margin-bottom: 46px; }
.rule{
  width: 46px;
  height: 3px;
  background: var(--orange);
  border: 0;
  margin: 0 0 18px;
}

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

/* ---------- Service badges ---------- */
.service-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  text-align: center;
}
.service-badge img{
  width: 148px;
  height: 148px;
  margin: 0 auto 14px;
}
.service-badge h3{
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-badge p{
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin: 0 auto;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery-grid .tall{ height: 540px; grid-row: span 2; }

/* ---------- Testimonial ---------- */
.testimonial{
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  border-left: 3px solid var(--orange);
  padding-left: 28px;
}
.testimonial p{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  max-width: none;
}
.testimonial cite{
  font-style: normal;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2{ color: var(--white); margin-bottom: 8px; }
.cta-band p{ color: rgba(255,255,255,0.9); margin: 0 auto 26px; }
.cta-band .btn-outline{ border-color: rgba(255,255,255,0.7); }
.cta-band .btn-outline:hover{ background: rgba(255,255,255,0.15); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy-tint);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 26px;
  font-size: 0.92rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-grid h4{
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.footer-grid a{ display: block; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.footer-grid a:hover{ color: var(--white); }
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img{ height: 40px; }
.footer-social{ margin-top: 16px; }
.footer-social a{
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.15s ease;
}
.footer-social a:hover{ opacity: 0.8; }
.footer-social img{ width: 30px; height: 30px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Contact page ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-card{
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card .field{ margin-bottom: 18px; }
.contact-card label{
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact-card input, .contact-card textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
}
.contact-card textarea{ min-height: 120px; resize: vertical; }
.contact-info-item{ display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .icon{ width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.contact-info-item h4{ margin: 0 0 3px; font-size: 0.98rem; color: var(--navy); }
.contact-info-item p{ margin: 0; color: var(--charcoal-soft); font-size: 0.94rem; }
.page-hero{
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 54px;
}
.page-hero p{ color: rgba(255,255,255,0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .main-nav{
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .main-nav.open{ display: flex; }
  .nav-toggle{ display: block; background: none; border: none; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
  .grid-2, .contact-grid{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-badge img{ width: 120px; height: 120px; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid .tall{ height: 260px; grid-row: auto; }
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .hero{ min-height: 480px; }
}
@media (max-width: 540px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .section{ padding: 60px 0; }
  .service-grid{ grid-template-columns: 1fr; }
}
