/* ============================================
   LINK INSURANCE BROKER — Styles
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary: #141414;
  --bg-secondary: #1E1E1E;
  --bg-card: #252525;
  --gold: #C8A84E;
  --gold-light: #E0C068;
  --gold-dark: #8B7332;
  --text-primary: #F2EDE4;
  --text-secondary: #9A9590;
  --gradient-gold: linear-gradient(135deg, #8B7332, #C8A84E, #E0C068, #C8A84E, #8B7332);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --nav-height: 80px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font: inherit;
  color: inherit;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: 50px;
  padding: 12px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 0.95rem;
}

.btn--gold {
  background: var(--gradient-gold);
  background-size: 200% 100%;
  color: #1a1a1a;
  border: none;
  font-weight: 600;
}

.btn--gold:hover {
  background-position: 100% 0;
  box-shadow: 0 4px 24px rgba(200, 168, 78, 0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gold-dark);
  color: var(--gold-light);
}

.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(200, 168, 78, 0.08);
  box-shadow: 0 4px 24px rgba(200, 168, 78, 0.15);
  transform: translateY(-1px);
}

/* Gold shimmer sweep */
.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.btn--gold:hover::after {
  left: 120%;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 78, 0);
  transition: background var(--transition), border-color var(--transition);
}

.nav.is-scrolled {
  background: rgba(20, 20, 20, 0.95);
  border-bottom-color: rgba(200, 168, 78, 0.12);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 64px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--gold-light);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav__phone:hover {
  color: var(--gold-light);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.mobile-drawer.is-open {
  pointer-events: all;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-drawer.is-open .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid rgba(200, 168, 78, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.mobile-drawer__close:hover {
  color: var(--gold);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__link {
  font-size: 1.1rem;
  font-weight: 400;
  padding: 12px 0;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition);
}

.mobile-drawer__link:hover {
  color: var(--gold-light);
}

.mobile-drawer__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer__phone {
  font-size: 1rem;
  color: var(--gold);
  text-align: center;
}

.mobile-drawer__cta .btn {
  text-align: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200, 168, 78, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 168, 78, 0.03) 0%, transparent 50%),
    var(--bg-primary);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero__logo {
  width: 260px;
  height: auto;
  margin: 0 auto 40px;
  filter: drop-shadow(0 4px 32px rgba(200, 168, 78, 0.15));
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll-icon {
  color: var(--gold-dark);
  opacity: 0.6;
  transition: opacity var(--transition);
}

.hero__scroll:hover .hero__scroll-icon {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(200, 168, 78, 0.08);
  border-radius: var(--radius);
  padding: 48px 32px 40px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 168, 78, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(200, 168, 78, 0.1);
}

.service-card__accent {
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--gradient-gold);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover .service-card__accent {
  opacity: 1;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  color: var(--gold);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   PARTNERS
   ============================================ */
.service-card[data-modal] {
  cursor: pointer;
}

.service-card__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.service-card:hover .service-card__more {
  color: var(--gold-light);
}

/* Service Modals */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.service-modal__content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(200, 168, 78, 0.12);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.service-modal.active .service-modal__content {
  transform: translateY(0);
}

.service-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.service-modal__close:hover {
  color: var(--gold);
}

.service-modal__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-modal__intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-modal__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-modal__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.service-modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

.service-modal__list li strong {
  color: var(--text-primary);
}

.partners {
  padding: 120px 0;
  background: var(--bg-primary);
}

.partners__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-width: 160px;
}

.partner-logo__img {
  height: 48px;
  width: auto;
  filter: grayscale(100%) brightness(0.85);
  opacity: 0.65;
  transition: all var(--transition);
}

.partner-logo:hover {
  border-color: rgba(200, 168, 78, 0.2);
  background: rgba(200, 168, 78, 0.04);
}

.partner-logo:hover .partner-logo__img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ============================================
   FAQ
   ============================================ */
/* About */
.about {
  padding: 120px 0;
  background: var(--bg-primary);
  border-top: 1px solid rgba(200, 168, 78, 0.08);
}

.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

.faq {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--gold-light);
}

.faq-item__icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--bg-primary);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-form__input {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form__input::placeholder {
  color: rgba(154, 149, 144, 0.5);
}

.contact-form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-form__submit {
  align-self: flex-start;
}

.contact-form__feedback {
  font-size: 0.9rem;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.contact-form__feedback.is-success {
  color: #5cb85c;
  padding: 12px 18px;
  background: rgba(92, 184, 92, 0.08);
  border: 1px solid rgba(92, 184, 92, 0.2);
}

.contact-form__feedback.is-error {
  color: #d9534f;
  padding: 12px 18px;
  background: rgba(217, 83, 79, 0.08);
  border: 1px solid rgba(217, 83, 79, 0.2);
}

/* Info */
.contact-info__card {
  background: var(--bg-card);
  border: 1px solid rgba(200, 168, 78, 0.08);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(200, 168, 78, 0.08);
  color: var(--gold);
}

.contact-info__label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color var(--transition);
}

a.contact-info__value:hover {
  color: var(--gold-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(200, 168, 78, 0.08);
  padding: 64px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  height: 80px;
  width: auto;
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 300px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

a.footer__contact-item:hover {
  color: var(--gold-light);
}

.footer__contact-item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer__regulatory {
  font-size: 0.78rem;
  color: rgba(154, 149, 144, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .nav__links,
  .nav__right {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  .hero__logo {
    width: 200px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .services {
    padding: 80px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 36px 24px 32px;
  }

  .partners {
    padding: 80px 0;
  }

  .partners__grid {
    gap: 20px;
  }

  .partner-logo {
    min-width: 130px;
    padding: 16px 24px;
  }

  .faq {
    padding: 80px 0;
  }

  .faq-item__question {
    font-size: 0.95rem;
    padding: 20px 0;
  }

  .contact {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero__logo {
    width: 160px;
  }

  .section-header__title {
    font-size: 1.8rem;
  }

  .partner-logo {
    min-width: 110px;
    padding: 14px 20px;
  }

  .partner-logo__text {
    font-size: 1.1rem;
  }
}