/* ============================================================
   Surface Specialists of the Treasure Coast — Main Stylesheet
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --primary:       #0056b3;
  --primary-dark:  #003d80;
  --accent:        #00a8cc;
  --green:         #1e7a46;
  --green-dark:    #155c34;
  --text-dark:     #1a2332;
  --text-medium:   #4a5568;
  --text-light:    #718096;
  --bg-light:      #f7fafc;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.10), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius:        .5rem;
  --radius-lg:     1rem;
  --font-base:     'Inter', system-ui, -apple-system, sans-serif;
  --transition:    all .2s ease;
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background: #fff;
  max-width: 1920px;
  margin: 0 auto;
  line-height: 1.6;
}

a { color: var(--primary); }

/* ── Skip Navigation (accessibility) ───────────────────────── */
.skip-nav {
  position: absolute;
  top: -120%;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  transition: top .2s;
}
.skip-nav:focus {
  top: 0;
  color: #fff;
}

/* ── Global focus ring ──────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-section {
  position: relative;
  background-image: url('img/banner-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,20,50,.70) 0%, rgba(0,86,179,.50) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  padding: 3rem 2rem;
  text-align: center;
}

.hero-logo {
  max-width: 440px;
  width: 100%;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.45));
}

/* Form panel */
.hero-form-panel {
  background: rgba(0, 86, 179, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2rem 2.25rem 2.5rem;
  border-left: 5px solid var(--accent);
  height: 100%;
}

/* Form header block */
.hero-form-panel .form-header {
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.1rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
}

.hero-form-panel .form-header::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto .75rem;
}

.hero-form-panel .form-title {
  color: rgba(255,255,255,.80);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .4rem;
}

.hero-form-panel .form-subtitle {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.30);
}

.hero-form-panel .form-phone {
  display: block;
  color: #90e0ef;
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  letter-spacing: -.01em;
}
.hero-form-panel .form-phone:hover,
.hero-form-panel .form-phone:focus {
  color: #fff;
  text-shadow: 0 0 12px rgba(144,224,239,.7);
}

.hero-form-panel label {
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
  display: block;
}

.hero-form-panel .form-control {
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  padding: .55rem .85rem;
}
.hero-form-panel .form-control::placeholder {
  color: var(--text-light);
}
.hero-form-panel .form-control:focus {
  background: #fff;
  border-color: var(--accent);
  color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(0,168,204,.35);
  outline: none;
}

.hero-form-panel textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.required-star {
  color: #ff9a9e;
  font-weight: 700;
  margin-left: 2px;
}

.btn-send {
  background: var(--green);
  border: none;
  color: #fff;
  width: 100%;
  padding: .85rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: .5rem;
}
.btn-send:hover,
.btn-send:focus {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-send:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
  padding: 4.5rem 0;
  background: #fff;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: .75rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 0 auto 2rem;
}

.intro-section p {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.85;
}

.intro-img {
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 5rem 0;
  background-image: url('img/bg.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  color: #fff;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,20,50,.82) 0%, rgba(0,86,179,.68) 100%);
}

.about-inner {
  position: relative;
  z-index: 1;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.about-section .about-phone {
  color: #90e0ef;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}
.about-section .about-phone a {
  color: #90e0ef;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(144,224,239,.4);
  transition: var(--transition);
}
.about-section .about-phone a:hover {
  border-bottom-color: #90e0ef;
}

.about-section p {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  line-height: 1.85;
}

.about-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: #caf0f8;
}

.about-divider {
  border-top: 1px solid rgba(255,255,255,.20);
  margin: 1.5rem 0;
}

.about-img {
 
  max-width: 100%;
}

/* ============================================================
   SERVICES CARDS
   ============================================================ */
.services-section {
  padding: 4.5rem 0;
  background: var(--bg-light);
}

.services-section .section-title {
  margin-bottom: .75rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.service-card-desc {
  font-size: .9rem;
  color: var(--text-medium);
  flex: 1;
  margin-bottom: 1rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
}
.service-card-link:hover {
  color: var(--primary-dark);
  gap: .55rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 5.5rem 0;
  background-image: url('img/bg-2.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 45, .72);
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.cta-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(30,122,70,.45);
  letter-spacing: -.01em;
}
.cta-phone-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}
.cta-phone-btn:hover,
.cta-phone-btn:focus {
  background: var(--green-dark);
  color: #fff;
  transform: scale(1.04);
}
.cta-phone-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
}

/* ============================================================
   SOCIAL SECTION
   ============================================================ */
.social-section {
  padding: 3rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.social-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-link.facebook  { background: #1877f2; color: #fff; }
.social-link.facebook:hover  { background: #0d5fb5; color: #fff; }
.social-link.twitter   { background: #000; color: #fff; }
.social-link.twitter:hover   { background: #333; color: #fff; }
.social-link.youtube   { background: #ff0000; color: #fff; }
.social-link.youtube:hover   { background: #cc0000; color: #fff; }
.social-link.linkedin  { background: #0a66c2; color: #fff; }
.social-link.linkedin:hover  { background: #084f96; color: #fff; }

/* ============================================================
   SERVICES LIST (accordion)
   ============================================================ */
.services-list-section {
  padding: 1.5rem 0 3rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.toggle-areas-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.toggle-areas-btn:hover {
  background: var(--primary-dark);
}
.toggle-areas-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.toggle-areas-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
  transition: transform .25s;
}
#toggleAreasBtn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.services-list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.25rem;
  columns: 3;
  column-gap: 1.5rem;
}

@media (max-width: 991px) {
  .services-list-card { columns: 2; }
}
@media (max-width: 575px) {
  .services-list-card { columns: 1; padding: 1.25rem; }
}

.services-list-card a {
  display: block;
  color: var(--primary);
  font-size: .875rem;
  text-decoration: none;
  padding: .18rem 0 .18rem .75rem;
  position: relative;
  transition: var(--transition);
  break-inside: avoid;
  line-height: 1.4;
}
.services-list-card a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.services-list-card a:hover {
  color: var(--primary-dark);
  padding-left: 1.1rem;
}

/* ============================================================
   FLOATING PHONE BUTTON
   ============================================================ */
.phone-float {
  position: fixed;
  bottom: 5%;
  right: 2%;
  z-index: 1000;
}

.phone-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--green);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(30,122,70,.50);
  transition: var(--transition);
  animation: pulse-ring 2.5s infinite;
}
.phone-float a:hover {
  background: var(--green-dark);
  transform: scale(1.1);
  animation: none;
}
.phone-float a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.phone-float a svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes pulse-ring {
  0%,100% { box-shadow: 0 4px 16px rgba(30,122,70,.50); }
  50%      { box-shadow: 0 4px 30px rgba(30,122,70,.80); }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1070;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

#cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-bar {
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -6px 28px rgba(0,0,0,.12);
  padding: 1.1rem 0;
  position: relative;
}

.cookie-layout {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-icon {
  width: 42px;
  height: 42px;
  background: #fff8e7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.cookie-text p {
  font-size: .82rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  padding: .55rem 1.3rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.cookie-btn-decline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-medium);
}
.cookie-btn-decline:hover {
  border-color: var(--text-medium);
  color: var(--text-dark);
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-accept:hover { background: var(--primary-dark); }

.cookie-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.cookie-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1;
  padding: .3rem .45rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}
.cookie-close:hover { color: var(--text-dark); background: var(--bg-light); }
.cookie-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 767px) {
  .cookie-layout     { flex-direction: column; align-items: flex-start; }
  .cookie-actions    { width: 100%; }
  .cookie-btn        { flex: 1; text-align: center; }
  .cookie-close      { top: .4rem; right: .4rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.72);
  padding: 2rem 0;
  text-align: center;
  font-size: .9rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.site-footer a:hover { color: #fff; }

.site-footer .footer-logo {
  margin-top: 1rem;
  opacity: .75;
  transition: var(--transition);
}
.site-footer .footer-logo:hover { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .hero-section,
  .about-section,
  .cta-section {
    background-attachment: scroll;
  }

  .hero-logo-wrap   { padding: 2rem 1rem; }
  .hero-form-panel  { padding: 1.5rem 1.25rem 2rem; border-left: none; border-top: 5px solid var(--accent); }

  .about-section h2 { font-size: 1.6rem; }
  .cta-section h2   { font-size: 1.7rem; }
  .cta-phone-btn    { font-size: 1.25rem; padding: .85rem 1.75rem; }

  .section-title    { font-size: 1.4rem; }
}
