/* ═══════════════════════════════════════════════════
   LariLegal — Stylesheet
   ═══════════════════════════════════════════════════ */

:root {
  --navy:      #1A2744;
  --navy-deep: #111A32;
  --navy-mid:  #243057;
  --gold:      #B89455;
  --gold-lt:   #D4AF75;
  --off-white: #F7F5F1;
  --white:     #FFFFFF;
  --ink:       #1E1E2E;
  --ink-mid:   #4B4D62;
  --ink-light: #7A7C8F;
  --border:    #E4E2DD;
  --error:     #C0392B;
  --success:   #1E6B45;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --transition: 220ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* ── Container ── */
.container {
  width: min(90%, 1160px);
  margin-inline: auto;
}

/* ── Section ── */
.section { padding-block: 5rem; }
.section--alt { background: var(--off-white); }

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.section__intro { text-align: center; margin-bottom: 3rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}
.btn--primary:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
  font-size: 0.875rem;
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--sm  { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; color: var(--white); text-align: center; }


/* ════════════════════════ HEADER ════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,39,68,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.25); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* Logo */
.logo {
    max-width: 160px;
}
.logo__mark {
  width: 38px; height: 38px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
}

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav__link.active{
  color: var(--white);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 1rem;}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__link {
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  padding: 0.5rem 0; display: block;
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__cta { margin-top: 0.5rem; display: inline-flex; }


/* ════════════════════════ HERO ════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(17,26,50,.92) 45%, rgba(17,26,50,.55) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 1000px;
  padding-block: 5rem;
}
.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.5rem;
  max-width: 52ch;
  line-height: 1.65;
}


/* ════════════════════════ ABOUT ════════════════════════ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__text {
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}
.about__copy .btn { margin-top: 0.5rem; }


/* ════════════════════════ SERVICES ════════════════════════ */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 30%;
}

@media (max-width: 1024px) {
  .service-card { width: 45%; }
}

@media (max-width: 575px) {
  .service-card { width: 100%; }
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 72px; height: 72px;
  background: rgba(184,148,85,.12);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.service-card__icon svg { width: 34px; height: 34px; }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}


/* ════════════════════════ DISCLAIMER ════════════════════════ */
.disclaimer { background: #EEEDF0; padding-block: 2rem; }
.disclaimer__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}
.disclaimer__icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--navy); margin-top: 2px; }
.disclaimer__icon svg { width: 100%; height: 100%; }
.disclaimer__text { font-size: 0.875rem; color: var(--ink-mid); line-height: 1.75; }


/* ════════════════════════ CONTACT ════════════════════════ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact__sub {
  color: var(--ink-mid);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
  transition: color var(--transition);
}
.contact__email:hover { color: var(--gold); }
.contact__email-icon { width: 20px; height: 20px; flex-shrink: 0; }
.contact__email-icon svg { width: 100%; height: 100%; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-label span { color: var(--error); margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.1);
}
.form-input.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.75rem; color: var(--error); font-weight: 500; min-height: auto; }
.form-honey { display: none !important; visibility: hidden; }
.form-success {
  font-size: 0.875rem; font-weight: 500;
  color: var(--success);
  background: rgba(30,107,69,.08);
  border-radius: var(--radius-sm);
  padding: 1rem; text-align: center;
  display: none;
}
.form-success.visible { display: block; }


/* ════════════════════════ FOOTER ════════════════════════ */
.footer { background: var(--navy-deep); padding-top: 4rem; }
.footer__brand{
  max-width: 180px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__nav { display: flex; gap: 1.5rem; justify-self: center; flex-wrap: wrap; justify-content: center; }
.footer__link {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--gold); }
.footer__contact { justify-self: end; }
.footer__email {
  font-size: 0.875rem; font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer__email:hover { color: var(--gold-lt); }

.footer__bottom { padding-block: 1.5rem; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,.4); }
.footer__disclaimer { font-size: 0.72rem; color: rgba(255,255,255,.28); max-width: 52ch; text-align: right; }


/* ════════════════════════ RESPONSIVE ════════════════════════ */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .footer__brand
  {
    margin: auto;
  }
  .section { padding-block: 3.5rem; }
  .nav, .nav__cta { display: none; }
  .hamburger { display: flex; }

  .hero__content { max-width: 100%; }
  .hero__heading { font-size: clamp(2rem, 10vw, 3rem); }

  .about__inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .services__grid { grid-template-columns: 1fr 1fr; }

  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__contact { justify-self: center; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
