/*
Theme Name: Coastal Computers Divi Child — Faithful
Theme URI: https://www.cscmdi.com/
Description: A faithful Divi-child conversion of the supplied Coastal Computers HTML and WordPress theme. The custom design applies only to the homepage; Divi remains available for interior pages.
Author: Coastal Computers
Template: Divi
Version: 3.0.0
Text Domain: coastal-computers-divi-child-faithful
*/


/* === COASTAL COMPUTERS CUSTOM STYLES === */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #0f2645;
    --navy-mid: #1a3a5c;
    --slate: #2e4a6b;
    --accent: #2d88c8;
    --accent-light: #e8f3fb;
    --gold: #c8922d;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --text: #1a1a2e;
    --text-mid: #3d4f63;
    --text-light: #6b7f96;
    --border: #dde4ed;
    --radius: 6px;
    --radius-lg: 12px;
    --font-head: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --max: 1100px;
    --transition: 0.22s ease;
  }

  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.7; }
  img { max-width: 100%; display: block; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }

  /* ── NAV ── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    padding: 0 1.5rem;
  }
  .nav-inner {
    max-width: var(--max); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
  }
  .nav-logo-mark {
    height: 44px; width: 44px; flex-shrink: 0; display: flex; align-items: center;
  }
  .nav-logo-text { color: var(--white); font-size: 17px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; }
  .nav-logo-text span { display: block; font-size: 11px; font-weight: 300; color: #aec3da; letter-spacing: 0.08em; text-transform: uppercase; }

  .nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
  .nav-links a {
    display: block; padding: 0 14px; height: 68px; line-height: 68px;
    color: #aec3da; font-size: 14px; font-weight: 400; letter-spacing: 0.02em;
    text-decoration: none; transition: color var(--transition), background var(--transition);
    white-space: nowrap;
  }
  .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
  .nav-links .nav-cta {
    margin-left: 10px;
    background: var(--gold); color: var(--navy); border-radius: var(--radius);
    padding: 0 18px; font-weight: 500; height: 36px; line-height: 36px;
    display: inline-flex; align-items: center;
  }
  .nav-links .nav-cta:hover { background: #daa840; text-decoration: none; }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--slate) 100%);
    padding: 100px 1.5rem 90px;
    position: relative; overflow: hidden;
  }
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
  }
  .hero-inner {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
    position: relative; z-index: 1;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(200,146,45,0.18); border: 1px solid rgba(200,146,45,0.4);
    border-radius: 20px; padding: 5px 14px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 22px;
  }
  .hero-eyebrow::before { content: '●'; font-size: 7px; }
  .hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600; color: var(--white);
    line-height: 1.2; margin-bottom: 22px;
  }
  .hero h1 em { font-style: normal; color: var(--gold); }
  .hero-desc { font-size: 17px; color: #b8cee0; line-height: 1.75; margin-bottom: 36px; font-weight: 300; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius); font-size: 15px;
    font-weight: 500; cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; font-family: var(--font-body);
  }
  .btn-primary { background: var(--gold); color: var(--navy); }
  .btn-primary:hover { background: #daa840; transform: translateY(-1px); text-decoration: none; color: var(--navy); }
  .btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
  .btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }
  .btn-solid { background: var(--accent); color: var(--white); }
  .btn-solid:hover { background: #2478b2; text-decoration: none; color: var(--white); }

  /* Hero image placeholder */
  .hero-image-wrap {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 2px solid rgba(255,255,255,0.12);
    position: relative;
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-image-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: rgba(255,255,255,0.06);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; color: rgba(255,255,255,0.35); font-size: 14px; text-align: center;
    padding: 20px;
  }
  .hero-image-placeholder svg { opacity: 0.3; }

  /* ── TRUST BAR ── */
  .trust-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 20px 1.5rem; }
  .trust-bar-inner {
    max-width: var(--max); margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: center;
  }
  .trust-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-mid); font-weight: 400; }
  .trust-icon { color: var(--gold); font-size: 18px; flex-shrink: 0; }

  /* ── SECTION COMMON ── */
  section { padding: 80px 1.5rem; }
  .section-inner { max-width: var(--max); margin: 0 auto; }
  .section-label {
    font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
  }
  .section-title {
    font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 16px;
  }
  .section-desc { font-size: 17px; color: var(--text-mid); max-width: 620px; line-height: 1.75; margin-bottom: 48px; }

  /* ── SERVICES ── */
  #services { background: var(--white); }
  .services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }
  .service-card {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; background: var(--white);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  }
  .service-card:hover { box-shadow: 0 8px 32px rgba(15,38,69,0.1); border-color: var(--accent); transform: translateY(-2px); }
  .service-icon {
    width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-light);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    color: var(--accent);
  }
  .service-icon svg { width: 24px; height: 24px; }
  .service-card h3 { font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
  .service-card p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
  .service-card .service-link { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
  .service-card .service-link::after { content: '→'; }

  /* ── ABOUT ── */
  #about { background: var(--off-white); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .about-image-stack { position: relative; }
  .about-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 2px solid var(--border);
  }
  .img-placeholder {
    background: #dce8f2; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    font-size: 13px; color: var(--text-light); text-align: center; padding: 20px;
  }
  .img-placeholder svg { opacity: 0.4; }
  .img-placeholder.tall { aspect-ratio: 4/3; }
  .img-placeholder.wide { aspect-ratio: 16/7; }
  .img-placeholder.square { aspect-ratio: 1; }
  .about-badge {
    position: absolute; bottom: -18px; right: -18px;
    background: var(--navy); color: var(--white);
    border-radius: var(--radius-lg); padding: 16px 20px; text-align: center;
    box-shadow: 0 8px 24px rgba(15,38,69,0.25);
  }
  .about-badge strong { display: block; font-size: 26px; font-family: var(--font-head); color: var(--gold); }
  .about-badge span { font-size: 12px; color: #aec3da; letter-spacing: 0.04em; }
  .about-content { padding-right: 20px; }
  .check-list { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
  .check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-mid); }
  .check-list li::before { content: '✓'; color: var(--accent); font-weight: 600; flex-shrink: 0; margin-top: 1px; }

  /* ── PROCESS ── */
  #process { background: var(--navy); padding: 80px 1.5rem; }
  #process .section-title { color: var(--white); }
  #process .section-label { color: var(--gold); }
  #process .section-desc { color: #aec3da; }
  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; position: relative; }
  .steps::before {
    content: '';
    position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
    background: rgba(255,255,255,0.12);
    z-index: 0;
  }
  .step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
  .step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    font-family: var(--font-head); font-size: 20px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
  }
  .step h4 { font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
  .step p { font-size: 14px; color: #8aabc5; line-height: 1.6; }

  /* ── TESTIMONIALS ── */
  #testimonials { background: var(--white); }
  .testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .testi-card {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; background: var(--white); position: relative;
  }
  .testi-quote {
    font-size: 40px; line-height: 1; color: var(--accent-light);
    font-family: Georgia, serif; margin-bottom: 14px;
  }
  .testi-text { font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
  .testi-author { display: flex; align-items: center; gap: 12px; }
  .testi-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent-light); display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 14px; color: var(--accent);
  }
  .testi-name { font-size: 14px; font-weight: 500; color: var(--navy); }
  .testi-role { font-size: 12px; color: var(--text-light); }
  .testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
  .testi-placeholder {
    border: 2px dashed var(--border); background: var(--off-white);
    border-radius: var(--radius-lg); padding: 28px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; text-align: center; color: var(--text-light); font-size: 14px; min-height: 180px;
  }



  /* ── CONTACT ── */
  #contact { background: var(--off-white); }
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
  .contact-info { display: flex; flex-direction: column; gap: 24px; }
  .contact-detail { display: flex; align-items: flex-start; gap: 14px; }
  .contact-detail-icon {
    width: 42px; height: 42px; border-radius: var(--radius); background: var(--accent-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent);
  }
  .contact-detail-icon svg { width: 20px; height: 20px; }
  .contact-detail-label { font-size: 12px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
  .contact-detail-value { font-size: 16px; color: var(--navy); font-weight: 400; margin-top: 2px; }
  .contact-detail-value a { color: var(--navy); }
  .contact-map {
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); margin-top: 24px;
  }
  .map-placeholder {
    width: 100%; aspect-ratio: 16/7;
    background: #d0dde8;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; font-size: 14px; color: var(--text-mid); text-align: center;
  }
  .map-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--accent); font-weight: 500; }

  /* ── CONTACT FORM ── */
  .contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
  .form-group { margin-bottom: 20px; }
  .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-mid); margin-bottom: 7px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 15px; font-family: var(--font-body);
    color: var(--text); background: var(--white);
    transition: border-color var(--transition); outline: none;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
  .form-group textarea { resize: vertical; min-height: 110px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-group.full { grid-column: 1/-1; }

  /* ── FOOTER ── */
  footer { background: var(--navy); color: #aec3da; padding: 48px 1.5rem 24px; }
  .footer-inner { max-width: var(--max); margin: 0 auto; }
  .footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-brand .nav-logo-text { font-size: 18px; }
  .footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #8aabc5; }
  .footer-col h4 { font-size: 13px; font-weight: 500; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul a { font-size: 14px; color: #8aabc5; text-decoration: none; transition: color var(--transition); }
  .footer-col ul a:hover { color: var(--white); }
  .footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-bottom p { font-size: 13px; color: #5e7a94; }
  .footer-bottom a { color: #5e7a94; }

  /* ── RESPONSIVE ── */
  @media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-image-wrap { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-badge { bottom: -10px; right: 10px; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.featured { grid-column: span 2; }
    .steps::before { display: none; }
    .nav-links { display: none; }
  }
  @media (max-width: 560px) {
    section { padding: 56px 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.featured { grid-column: auto; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .trust-bar-inner { justify-content: flex-start; }
    .hero { padding: 60px 1.25rem 56px; }
  }


/* === WORDPRESS/DIVI INTEGRATION FIXES ONLY === */
html { margin-top: 0 !important; }
body.coastal-faithful-home { margin: 0; padding: 0; }
#coastal-custom-home { min-height: 100vh; overflow-x: hidden; }
#coastal-custom-home nav,
#coastal-custom-home header,
#coastal-custom-home section,
#coastal-custom-home footer { width: 100%; }
body.admin-bar #coastal-custom-home nav { top: 32px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 21px; height: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.form-notice { margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.form-success { background: #e9f7ef; border: 1px solid #9bd0ad; color: #205b34; }
.form-error { background: #fff0f0; border: 1px solid #e6aaaa; color: #7a2525; }
.coastal-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 880px) {
  body.admin-bar #coastal-custom-home nav { top: 46px; }
  .nav-inner { position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: -1.5rem;
    right: -1.5rem;
    padding: 10px 1.5rem 18px;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 12px 25px rgba(8,23,42,.25);
  }
  .nav-links.is-open { display: block; }
  .nav-links li { width: 100%; }
  .nav-links a { height: auto; line-height: 1.3; padding: 13px 8px; }
  .nav-links .nav-cta { margin: 8px 0 0; padding: 12px 16px; height: auto; line-height: 1.2; justify-content: center; }
  .award-grid, .faq-grid { grid-template-columns: 1fr !important; }
  .award-grid { gap: 34px !important; }
}

@media (max-width: 560px) {
  .nav-logo-text { font-size: 15px; }
  .nav-logo-text span { font-size: 9px; }
  .nav-logo img { width: 40px !important; height: 40px !important; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 24px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
