/* =========================================================
   EDELSY Marketing LLC — Design System
   Rebuilt by One Black Dog Media
   Brand: deep navy + light-blue accent, serif headings,
   geometric sans for logo/nav, navy floral line-art motif.
   ========================================================= */

:root {
  /* Brand palette */
  --navy:        #1B3A5F;   /* primary brand navy (logo, headings) */
  --navy-deep:   #15304F;   /* darker navy for button/hover */
  --navy-ink:    #122943;   /* deepest text navy */
  --blue-accent: #5E8CB8;   /* tagline / accent blue */
  --blue-soft:   #A9C4DD;   /* soft decorative blue */
  --blue-faint:  #E7EEF6;   /* very light section tint */
  --paper:       #FFFFFF;
  --paper-warm:  #FCFDFE;
  --text:        #2B3A48;
  --text-soft:   #5A6B7A;
  --line:        #E2E9F1;

  /* Type */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans:  "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(27, 58, 95, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 58, 95, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-accent); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Fixed decorative side strips (sit behind content, stay put on scroll) */
.side-bg {
  position: fixed; top: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: max(0px, min(360px, calc((100vw - 1200px) / 2)));
  background-repeat: no-repeat; background-size: cover;
}
.side-bg--left  { left: 0;  background-image: url(images/left-bg.png);  background-position: left top; }
.side-bg--right { right: 0; background-image: url(images/right-bg.png); background-position: right top; }
@media (max-width: 1100px) { .side-bg { display: none; } }
.page-content { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  color: #fff;
  background: var(--navy);
  border: 2px solid rgba(255,255,255,.55);
  padding: 16px 42px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--solid { border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  background: transparent;
  padding: 28px 0 10px;
  z-index: 60;
}

/* Logo */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.brand__logo { width: 416px; max-width: 86vw; height: auto; display: block; }
.brand__mark { width: 74px; height: auto; }
.brand__name { font-family: var(--font-sans); color: var(--navy); line-height: 1; }
.brand__name .small {
  display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: .42em;
  text-indent: .42em; margin-bottom: 2px;
}
.brand__name .big {
  display: block; font-size: 1.95rem; font-weight: 700; letter-spacing: .34em; text-indent: .34em;
}
.brand__tagline {
  font-family: var(--font-sans); color: var(--blue-accent);
  font-size: .72rem; font-weight: 600; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; margin-top: 4px;
}

/* Nav */
.main-nav { margin-top: 22px; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 38px;
  font-family: var(--font-sans);
}
.nav-list > li { position: relative; }
.nav-list a {
  font-size: 1rem; font-weight: 500; color: var(--navy);
  padding: 8px 2px; display: inline-block; position: relative;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--navy); transform: scaleX(0);
  transform-origin: center; transition: transform .25s var(--ease);
}
.nav-list > li > a:hover::after,
.nav-list > li.is-active > a::after { transform: scaleX(1); }
.nav-list > li.is-active > a { font-weight: 600; }

/* Services dropdown */
.has-dropdown > a .caret {
  display: inline-block; margin-left: 6px; border: solid var(--navy);
  border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 260px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 80;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 11px 16px; border-radius: 6px;
  font-size: .95rem; color: var(--navy); white-space: nowrap;
}
.dropdown a:hover { background: var(--blue-faint); color: var(--navy); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }
.has-dropdown:hover > a .caret { transform: rotate(225deg) translateY(2px); }

/* Mobile toggle */
.nav-toggle {
  display: none; position: absolute; top: 30px; right: 24px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; z-index: 90;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 26px; height: 2px; background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span::after  { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,41,67,.28), rgba(18,41,67,.42)); z-index: 2; }
.hero__inner { position: relative; z-index: 3; padding: 80px 24px; max-width: 1000px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600;
  margin-bottom: 26px; text-shadow: 0 2px 18px rgba(0,0,0,.35); letter-spacing: .01em;
}
.hero__sub { font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.5; margin: 0 auto 38px; max-width: 820px; }
.hero__sub mark {
  background: rgba(255, 255, 255, .92); color: var(--navy);
  padding: .1em .3em; border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 80px 0; position: relative; }
.section--tint { background: transparent; }
.section__eyebrow {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .28em;
  font-size: .78rem; font-weight: 600; color: var(--blue-accent); margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--text); max-width: 820px; }
.prose p { margin: 0 0 1.3em; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Floral divider band */
.floral-band { padding: 30px 0 10px; text-align: center; }
.floral-band svg { width: min(960px, 92%); height: auto; }

/* Scattered decorative motifs */
.deco { position: absolute; opacity: .5; pointer-events: none; z-index: 0; }
.deco svg { width: 100%; height: 100%; }
.deco--tl { top: 30px; left: 2%; width: 70px; }
.deco--tr { top: 90px; right: 3%; width: 92px; }
.deco--ml { top: 42%; left: 1.5%; width: 54px; }
.deco--mr { top: 38%; right: 2%; width: 60px; }
.section > .container { position: relative; z-index: 2; }

/* Service grid (home + services index) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card__img img { transform: scale(1.06); }
.svc-card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.svc-card__body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-card__body p { font-size: .98rem; color: var(--text-soft); margin: 0 0 18px; }
.svc-card__link {
  margin-top: auto; font-family: var(--font-sans); font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; color: var(--navy);
}
.svc-card__link .arrow { transition: transform .25s var(--ease); display: inline-block; }
.svc-card:hover .svc-card__link .arrow { transform: translateX(5px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.ceo-block { text-align: center; }
.ceo-block h2 { margin-top: 26px; }

/* Service detail page */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.svc-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail .intro { font-weight: 600; color: var(--navy); font-size: 1.12rem; }
.coming-soon { text-align: center; padding: 30px 0 0; }
.badge {
  display: inline-block; font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue-accent);
  background: var(--blue-faint); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-sans); font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-serif); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-warm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(94,140,184,.18); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.req { color: #c0563f; }
.form-note { font-size: .85rem; color: var(--text-soft); font-family: var(--font-sans); }
.alert { padding: 14px 18px; border-radius: 6px; font-family: var(--font-sans); font-size: .95rem; margin-bottom: 20px; }
.alert--ok { background: #e8f4ec; color: #1f5c38; border: 1px solid #bfe0cb; }
.alert--err { background: #fbeceA; color: #8a3322; border: 1px solid #f0cabf; }

.contact-meta { font-family: var(--font-sans); margin-top: 26px; }
.contact-meta a { font-weight: 600; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-ink); color: #cdd9e6; padding: 54px 0 30px; margin-top: 70px;
  font-family: var(--font-sans); position: relative;
}
.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-brand { font-weight: 700; letter-spacing: .3em; color: #fff; font-size: 1.1rem; }
.footer-tag { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--blue-soft); }
.social { display: flex; gap: 16px; justify-content: center; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center; color: #fff; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: var(--blue-accent); border-color: var(--blue-accent); color: #fff; transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-contact { font-size: .92rem; }
.footer-contact a { color: var(--blue-soft); }
.footer-copy { font-size: .8rem; color: #8ba3bd; margin-top: 8px; }

/* =========================================================
   NEWSLETTER MODAL
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(18,41,67,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200;
}
.modal-overlay.is-open { display: flex; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 12px; max-width: 480px; width: 100%;
  padding: 38px 34px; position: relative; box-shadow: var(--shadow-md);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: translateY(18px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { font-family: var(--font-sans); letter-spacing: .14em; text-transform: uppercase; font-size: 1.1rem; text-align: center; }
.modal p { text-align: center; color: var(--text-soft); font-size: 1rem; margin-bottom: 22px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border: 0; background: var(--blue-faint);
  border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--navy); line-height: 1;
}
.modal__close:hover { background: var(--blue-soft); }
.modal .btn { width: 100%; }

/* Testimonials */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px; display: flex; flex-direction: column; }
.tcard__stars { color: #E0A21E; letter-spacing: 3px; margin-bottom: 12px; font-size: 1.05rem; }
.tcard__quote { font-style: italic; color: var(--text); margin: 0 0 18px; line-height: 1.65; }
.tcard__name { font-family: var(--font-sans); font-weight: 700; color: var(--navy); }
.tcard__role { font-family: var(--font-sans); font-size: .85rem; color: var(--text-soft); margin-top: 2px; }
.t-empty { max-width: 620px; margin: 0 auto; text-align: center; }

/* =========================================================
   ANIMATIONS (page-load reveal)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .svc-detail { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-top: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); margin: 0;
  }
  body.nav-open .main-nav { max-height: 620px; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-list > li { width: 100%; text-align: center; border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list > li > a { display: block; padding: 14px; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; min-width: 0; background: var(--blue-faint); border-radius: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); padding: 0;
  }
  .has-dropdown.open .dropdown { max-height: 460px; padding: 6px; }
  .has-dropdown:hover .dropdown { transform: none; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand__name .big { font-size: 1.55rem; letter-spacing: .26em; text-indent: .26em; }
  .brand__name .small { font-size: 1.05rem; letter-spacing: .34em; text-indent: .34em; }
  body { font-size: 17px; }
  .section { padding: 56px 0; }
}