/* ==========================================================================
   Cane Finstrat Services — Shared Stylesheet
   Palette: Navy & White
   ========================================================================== */

:root {
  --navy-900: #0b1f33;
  --navy-800: #102b44;
  --navy-700: #173a59;
  --navy-600: #1f4c72;
  --navy-500: #2e618b;
  --navy-100: #e7edf6;
  --navy-050: #f4f7fb;
  --white: #ffffff;
  --ink: #16233b;
  --ink-muted: #5b6b84;
  --border: #dfe6f0;
  --shadow: 0 20px 45px -25px rgba(11, 31, 51, 0.35);

  --font-head: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

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

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: 0.9em;
}

.section {
  padding: 88px 0;
}

.section--muted {
  background: var(--navy-050);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

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

.section-head p {
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--white);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--navy-100);
  color: var(--navy-900);
}

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

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

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

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.brand--logo {
  align-items: center;
}

.brand-logo {
  height: 97px;
  width: auto;
  display: block;
}

.brand-logo--footer {
  height: 128px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-head);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy-800);
  border-bottom-color: var(--navy-600);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.07), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 110px 0 96px;
}

/* Full-bleed photo hero, content right-aligned */
.hero--storm {
  background:
    linear-gradient(100deg, rgba(6, 14, 24, 0.92) 0%, rgba(10, 27, 45, 0.72) 42%, rgba(11, 31, 51, 0.38) 100%),
    url("images/hero-storm.jpg") center 35% / cover no-repeat;
}

.hero-inner {
  position: relative;
  padding: 150px 0 130px;
}

.hero-content {
  max-width: 560px;
  margin-left: auto;
}

.hero-content .lede {
  margin-left: auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-panel h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat:first-of-type {
  border-top: none;
}

.hero-stat strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

.page-hero {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 76px 0 64px;
  text-align: center;
}

.page-hero h1 { color: var(--white); }
.page-hero p {
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto;
}

.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}

/* ---------- Cards / Grids ---------- */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.value-card {
  text-align: left;
  padding: 30px;
  border-radius: 14px;
  background: var(--navy-050);
  border: 1px solid var(--border);
}

.value-card .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--navy-500);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Service detail rows ---------- */

.service-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-row .card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
}

.service-row .card-icon svg {
  width: 30px;
  height: 30px;
}

.service-row ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.service-row li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}

.service-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-500);
}

/* Single-column list used where items have nested sub-items (e.g. Other Services) */
.service-row ul.service-list--nested {
  display: block;
  grid-template-columns: none;
  margin-top: 4px;
}

.service-list--nested > li {
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.service-list--nested > li:last-child {
  margin-bottom: 0;
}

.service-list--nested ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: block;
}

.service-list--nested ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.92rem;
}

.service-list--nested ul li:last-child {
  margin-bottom: 0;
}

.service-list--nested ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-500);
  opacity: 0.55;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  margin: 0 0 6px;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.contact-info-item:first-child { border-top: none; padding-top: 0; }

.contact-info-item .card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-info-item .card-icon svg { width: 20px; height: 20px; }

.contact-info-item h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--navy-900);
  margin: 0 0 4px;
}

.contact-info-item p { margin: 0; font-size: 0.94rem; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-row a:hover {
  background: var(--navy-900);
  color: var(--white);
}

.social-row svg { width: 19px; height: 19px; }

form {
  background: var(--navy-050);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field.full { grid-column: 1 / -1; margin-bottom: 18px; }

label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-900);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(47, 99, 171, 0.15);
}

textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ---------- Map ---------- */

.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
  margin-top: 32px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #163a5f;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 0.92rem; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.93rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.72); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-grid { padding: 76px 0 64px; }
  .hero-inner { padding: 96px 0 72px; }
  .hero-content { max-width: 100%; margin-left: 0; }
  .brand-logo { height: 66px; }
  .brand-logo--footer { height: 92px; }
}

/* Mobile nav (simple show/hide via checkbox-free JS toggle) */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

/* ---------- Contact form: service selection tiles ---------- */

.field-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-tile {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.service-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.service-tile__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid #c3cee0;
  background: var(--white);
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.service-tile__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.service-tile__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

.service-tile:hover {
  border-color: var(--navy-500);
}

.service-tile:has(input:focus-visible) {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
}

.service-tile:has(input:checked) {
  background: var(--navy-100);
  border-color: var(--navy-500);
}

.service-tile:has(input:checked) .service-tile__box {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.service-tile:has(input:checked) .service-tile__box::after {
  opacity: 1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #1c7a4d;
}

.form-status.error {
  color: #b3261e;
}

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

@media (max-width: 760px) {
  form {
    padding: 28px 22px;
  }
}

/* ---------- Setmore booking callout ---------- */

.booking-cta {
  margin: 28px 0 32px;
  padding: 24px 26px;
  background: var(--navy-050);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.booking-cta h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.booking-cta p {
  margin: 0 0 16px;
  font-size: 0.92rem;
}

.booking-cta .anywhere-book-now-button {
  font-family: var(--font-head);
}
