/* Coastal IT — shared stylesheet */

:root {
  --navy: #0B2545;
  --navy-light: #1C4E80;
  --wave: #3E7CB1;
  --red: #C8102E;
  --red-dark: #9E0C22;
  --cream: #F7F5F0;
  --ink: #1B1F27;
  --muted: #5B6472;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11,37,69,0.12);
  --font: 'Calibri','Carlito','Trebuchet MS',Arial,sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid #E7E9EE;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 16px;
}

.brand img { height: 42px; display: block; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-weight: 600;
  color: var(--navy);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--red);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 76px 0 90px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--white);
  background: rgba(200,16,46,0.9);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 540px;
  margin: 0 0 28px;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
}

.hero-panel h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--white);
}

.hero-panel ul { margin: 0; padding-left: 20px; }
.hero-panel li { margin-bottom: 10px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--cream); }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow-sm {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.section-head h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 10px 0 12px;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid #E7E9EE;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.card.accent .icon { background: var(--red); }

.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--red);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy);
  color: var(--white);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  text-align: center;
}
.trust-strip .item { flex: 1 1 200px; font-weight: 600; font-size: 0.95rem; opacity: 0.95; }
.trust-strip .item strong { display: block; font-size: 1.5rem; color: var(--white); margin-bottom: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 54px 0;
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { margin: 0 0 24px; opacity: 0.95; }

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 54px 0;
}
.page-head .eyebrow-sm { color: #FFB3BE; font-weight: 700; letter-spacing: 1.5px; font-size: 0.82rem; text-transform: uppercase; }
.page-head h1 { margin: 10px 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.page-head p { max-width: 620px; opacity: 0.9; margin: 0; }

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid #E7E9EE;
}
.service-row:last-child { border-bottom: none; }
.service-row .icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.service-row.accent .icon { background: var(--red); }
.service-row h3 { margin: 0 0 6px; color: var(--navy); }
.service-row p { margin: 0; color: var(--muted); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid h2 { color: var(--navy); }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  padding: 14px 0;
  border-bottom: 1px solid #E7E9EE;
  display: flex;
  gap: 14px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); margin-top: 7px; flex-shrink: 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 44px;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card h3 { color: var(--navy); margin-top: 0; }
.contact-card .row { margin-bottom: 18px; }
.contact-card .row .label { font-weight: 700; color: var(--navy); font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.contact-card .row a { color: var(--red); font-weight: 700; font-size: 1.05rem; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label { font-weight: 700; color: var(--navy); font-size: 0.92rem; display: block; margin-bottom: 6px; }
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D4D8DF;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: -4px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  padding: 46px 0 28px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a:hover { color: var(--white); text-decoration: underline; }
footer.site-footer .brand img { height: 40px; margin-bottom: 14px; }
footer.site-footer p.tiny { font-size: 0.85rem; opacity: 0.7; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { gap: 16px; }
}

@media (max-width: 600px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav.main-nav { width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 56px 1fr; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .container { flex-direction: column; }
}
