/* =============================================
   FENIX TYPING OFFICE – Main Stylesheet
   Colors: Navy #0D1B2A, Gold #C9A84C, Light Gold #E8C97A
   ============================================= */

:root {
  --navy: #0D1B2A;
  --navy-mid: #162336;
  --navy-light: #1E3352;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07828;
  --white: #ffffff;
  --off-white: #F8F6F1;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 12px 48px rgba(13, 27, 42, 0.18);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.gold { color: var(--gold); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}
.btn-gold:hover {
  background-position: right center;
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}
.section-header.light p { color: rgba(255,255,255,0.65); }
.section-header.light h2 { color: var(--white); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 4px 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 50px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(13, 27, 42, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.logo-icon.small { width: 36px; height: 36px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-fenix {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 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); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3050 40%, #0f2540 70%, var(--navy) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,168,76,0.07) 0%, transparent 50%);
}

/* decorative grid lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-overlay { position: absolute; inset: 0; z-index: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}
.hero-tagline strong { color: var(--gold); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 20px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* ===== ABOUT ===== */
.about {
  padding: 96px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text .section-label { margin-bottom: 14px; }

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
  color: var(--navy);
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.about-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201,168,76,0.12);
  transform: translateY(-2px);
}

.about-card.accent-card {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.about-card.accent-card h3 { color: var(--gold); }
.about-card.accent-card p { color: rgba(255,255,255,0.72); }
.about-card.accent-card .card-icon { background: rgba(201,168,76,0.15); color: var(--gold); }

.card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.card-icon svg { width: 24px; height: 24px; }

.about-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.about-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== SERVICES ===== */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201,168,76,0.12);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-card ul li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== WHY CHOOSE US ===== */
.why-us {
  padding: 96px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(201,168,76,0.06) 0%, transparent 50%);
}

.why-us .container { position: relative; z-index: 1; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
}

.why-card.highlight-card {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.3);
  grid-column: span 1;
}
.why-card.highlight-card h3 { color: var(--gold); }

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}
.why-icon svg { width: 26px; height: 26px; }
.why-icon.gold-icon { background: var(--gold); color: var(--navy); }

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ===== CONTACT ===== */
.contact {
  padding: 96px 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-detail a, .contact-detail span {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--gold); }

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Map placeholder */
.contact-map {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-placeholder {
  flex: 1;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
}

.map-pin {
  width: 48px;
  height: 48px;
  color: var(--gold);
}
.map-pin svg { width: 100%; height: 100%; }

.map-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white);
}
.map-label strong { font-size: 1.05rem; color: var(--gold); }
.map-label span { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 6px 16px;
  border-radius: 50px;
  transition: var(--transition);
}
.map-link:hover {
  background: rgba(201,168,76,0.15);
}

.branch-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.branch-info h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.branch-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.services-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.services-tag-list span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.25);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-brand strong { color: var(--gold); }
.footer-llc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px !important;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a, .footer-contact-list li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== FAB CALL BUTTON ===== */
.fab-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5);
  transition: var(--transition);
}
.fab-call svg { width: 24px; height: 24px; }
.fab-call:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.6);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open a { padding: 12px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-inner { justify-content: flex-start; gap: 12px 24px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .contact-actions { flex-direction: column; }
  .contact-info { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .about-stats { gap: 16px; }
  .hero h1 { font-size: 2rem; }
  .map-placeholder { min-height: 220px; }
}
