/* ============================
   Nyles Law — Design Tokens
   ============================ */
:root {
  --navy: #14293f;
  --navy-deep: #0d1c2c;
  --blue: #27aae1;
  --blue-deep: #1a86b6;
  --green: #3cb64b;
  --green-deep: #2f963c;
  --cream: #f7f5ef;
  --paper: #fffdf9;
  --ink: #1c2733;
  --ink-soft: #4b5a68;
  --slate-line: rgba(20, 41, 63, 0.12);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { color: var(--blue-deep); }
a:hover { color: var(--green-deep); }

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
}

.section-pad { padding: 5.5rem 0; }

/* ============================
   Navbar
   ============================ */
.navbar-wfw {
  background: rgba(20, 41, 63, 0.97);
  padding: 0.65rem 0;
  transition: padding 0.2s ease;
}

.navbar-wfw .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-wfw .navbar-brand img {
  height: 34px;
  width: auto;
}

.navbar-wfw .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.5rem 0.9rem !important;
}

.navbar-wfw .nav-link:hover { color: #fff !important; }

.navbar-wfw .btn-nav-cta {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.navbar-wfw .btn-nav-cta:hover { background: var(--green-deep); color: #fff; }

.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================
   Hero — Typographic-forward
   ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('img/hero.webp') center/cover no-repeat;
  opacity: 0.34;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(13, 28, 44, 0.97) 0%, rgba(13, 28, 44, 0.88) 38%, rgba(20, 41, 63, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem 0;
}

.hero-eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
  line-height: 1.04;
  margin: 0.7rem 0 1.2rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-title .accent { color: var(--blue); }

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.4rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.9);
}

.hero-badge i { color: var(--green); font-size: 1.1rem; }

.btn-hero-primary {
  background: var(--green);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 6px;
  font-size: 1rem;
}
.btn-hero-primary:hover { background: var(--green-deep); color: #fff; }

.btn-hero-secondary {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
}
.btn-hero-secondary:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.14); }

/* ============================
   About / Attorneys
   ============================ */
.section-about { background: var(--paper); }

.about-credentials {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 2.75rem 2rem;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 20px 50px rgba(20, 41, 63, 0.22);
}

.credentials-seal {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.08;
  pointer-events: none;
}

.credential-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.25rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.credential-item i {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 0.15rem;
}

.credential-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  color: #fff;
  line-height: 1.1;
}

.credential-label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.7);
}

.attorney-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid var(--slate-line);
}

.attorney-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.1rem;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(20,41,63,0.15);
}

.attorney-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}

.attorney-role {
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.attorney-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ============================
   Services grids
   ============================ */
.section-services { background: var(--cream); }

.service-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 1.9rem 1.6rem;
  height: 100%;
  border: 1px solid var(--slate-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20,41,63,0.1);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.section-estate { background: var(--navy); }
.section-estate .section-eyebrow { color: var(--green); }
.section-estate .section-title { color: #fff; }
.section-estate .section-sub { color: rgba(255,255,255,0.75); }

.section-estate .service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
.section-estate .service-card h3 { color: #fff; }
.section-estate .service-card p { color: rgba(255,255,255,0.72); }

.estate-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  height: 100%;
  min-height: 260px;
}
.estate-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================
   Plan & Sip
   ============================ */
.section-plansip {
  background: var(--paper);
}

.plansip-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20,41,63,0.14);
}
.plansip-photo img { width: 100%; display: block; }

.plansip-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.plansip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
}
.plansip-list i { color: var(--green-deep); margin-top: 0.2rem; }

/* ============================
   Guides accordion
   ============================ */
.section-guides { background: var(--cream); }

.accordion-item {
  border: 1px solid var(--slate-line);
  border-radius: 10px !important;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--paper);
}

.accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.08rem;
  background: var(--paper);
}

.accordion-button:not(.collapsed) {
  color: var(--blue-deep);
  background: var(--paper);
  box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

.accordion-button::after {
  filter: hue-rotate(180deg);
}

.accordion-body { color: var(--ink-soft); font-size: 0.96rem; }
.accordion-body strong { color: var(--ink); }

/* ============================
   Contact
   ============================ */
.section-contact { background: var(--navy); color: #fff; }
.section-contact .section-eyebrow { color: var(--green); }
.section-contact .section-title { color: #fff; }

.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 2.2rem;
}

.contact-card h3 { color: #fff; font-size: 1.3rem; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}
.contact-line:hover { color: var(--green); }
.contact-line i { color: var(--blue); font-size: 1.1rem; width: 20px; }

.btn-contact-cta {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.8rem 1rem;
}
.btn-contact-cta:hover { background: var(--green-deep); color: #fff; }

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.14);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ============================
   Footer
   ============================ */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1rem;
}
.footer-chip img { height: 30px; width: auto; display: block; }

footer.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.68); text-decoration: none; }
.footer-links a:hover { color: var(--green); }
.footer-links i { margin-right: 0.4rem; color: var(--blue); }

footer.site-footer hr { border-color: rgba(255,255,255,0.12); margin: 2rem 0 1.2rem; }

.powered-by { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin: 0; }
.powered-by a { color: var(--blue); text-decoration: none; font-weight: 600; }
.powered-by a:hover { color: var(--green); }

/* ============================
   Responsive
   ============================ */
@media (max-width: 991px) {
  .navbar-wfw .navbar-collapse {
    background: var(--navy-deep);
    margin-top: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
  }
  .navbar-wfw .btn-nav-cta { margin: 0.6rem 0 0; display: inline-block; }
}

@media (max-width: 767px) {
  .section-pad { padding: 3.5rem 0; }
  .hero { min-height: 100vh; }
  .hero-badges { gap: 0.8rem 1.4rem; }
}
