/* ============================================================
   CrownTax & Corporate Solutions — Global Stylesheet
   styles.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2e45;
  --navy-light: #243b55;
  --gold:       #c9972b;
  --gold-light: #e6b84a;
  --gold-pale:  #f5e6c8;
  --white:      #ffffff;
  --off-white:  #f7f5f0;
  --gray-light: #e8e4dc;
  --gray-mid:   #9e9a93;
  --gray-dark:  #4a4640;
  --text-body:  #2d2926;
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.12);
  --shadow-md:  0 6px 24px rgba(13,27,42,0.18);
  --shadow-lg:  0 12px 40px rgba(13,27,42,0.22);
  --radius:     4px;
  --transition: 0.28s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', 'Segoe UI', sans-serif;
  --topbar-h:   42px;
  --nav-h:      76px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utility Classes ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 72px 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 14px 0 22px;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--gold-pale);
  color: var(--white);
  border: 2px solid var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   TOP CONTACT BAR
   ============================================================ */
.top-bar {
  background: rgb(25, 41, 83);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(201,151,43,0.3);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--gray-light);
  transition: color var(--transition);
}
.top-bar__item:hover { color: var(--gold-light); }

.top-bar__item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: var(--gold);
}

.top-bar__sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.top-bar__social a:hover { background: var(--gold); }
.top-bar__social a svg { width: 13px; height: 13px; fill: var(--white); }

.top-bar__welcome {
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-h);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gold);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo__icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo__icon svg { width: 28px; height: 28px; }

.nav-logo__text { line-height: 1.2; }
.nav-logo__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.nav-logo__tagline {
  font-size: 0.67rem;
  color: var(--gray-mid);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: var(--gold-pale);
}

.nav-link .caret {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform var(--transition);
}
.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdowns */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 230px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.84rem;
  color: var(--gray-dark);
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition), color var(--transition), padding var(--transition);
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
  background: var(--gold-pale);
  color: var(--navy);
  padding-left: 24px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--gold-pale); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-pale);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-col__logo .icon {
  width: 40px;
  height: 40px;
  background: var(--navy-light);
  border: 1px solid rgba(201,151,43,0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-col__logo .icon svg { width: 22px; height: 22px; }
.footer-col__logo-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.footer-col__logo-tag {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-social a svg { width: 15px; height: 15px; fill: var(--white); }

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition), gap var(--transition);
}
.footer-links a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.footer-links a:hover { color: var(--gold-light); gap: 10px; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item span {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--gold-light); }

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 0.79rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 0px; --nav-h: 64px; }

  .top-bar { display: none; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 16px 0 32px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    border-top: 3px solid var(--gold);
    z-index: 999;
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-item { border-bottom: 1px solid var(--gray-light); }
  .nav-link { padding: 14px 20px; font-size: 0.95rem; border-radius: 0; }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-light);
    border-radius: 0;
    display: none;
    min-width: 100%;
    background: var(--off-white);
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown li a { padding: 10px 32px; }

  .nav-hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .section-pad { padding: 48px 0; }
}

@media (max-width: 480px) {
  .nav-logo__name { font-size: 0.95rem; }
  .nav-logo__tagline { display: none; }
}
