/* ============================================================
   Enriquez Consulting — Main Stylesheet
   Mobile-first · No frameworks
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --navy:        #1b2a4a;
  --navy-dark:   #111d35;
  --navy-light:  #2c3f68;
  --gold:        #c8941f;
  --gold-light:  #e0aa3a;
  --gold-pale:   #f5e6c0;
  --white:       #ffffff;
  --off-white:   #faf8f4;
  --gray-light:  #f0ece3;
  --gray-mid:    #d6cfc0;
  --gray-text:   #6b6356;
  --text:        #1e1a14;
  --text-light:  #4a4237;

  --font-body:   'Georgia', 'Times New Roman', serif;
  --font-sans:   'Helvetica Neue', Arial, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(27, 42, 74, 0.10);
  --shadow-lg:   0 6px 32px rgba(27, 42, 74, 0.16);

  --max-width:   1140px;
  --section-gap: 5rem;
  --header-h:    72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus-visible {
  color: var(--gold-light);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

ul { list-style: none; }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--section-gap);
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-text);
  max-width: 600px;
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 148, 31, 0.3);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-fallback {
  display: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* Nav links */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 1.25rem 1.25rem 1.5rem;
  gap: 0.25rem;
  box-shadow: var(--shadow-lg);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--gold-light);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  order: 3;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  order: 2;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}

.lang-btn.active {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  user-select: none;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 0.15rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.65rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(
      160deg,
      rgba(17, 29, 53, 0.88) 0%,
      rgba(27, 42, 74, 0.80) 50%,
      rgba(17, 29, 53, 0.70) 100%
    ),
    /* Fallback gradient simulating a textured background */
    linear-gradient(135deg, #1b2a4a 0%, #2c3f68 40%, #1b2a4a 100%);
  min-height: clamp(480px, 70vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Decorative gold accent bar */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 3rem;
  }
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-image-wrap {
  flex-shrink: 0;
  width: 100%;
  max-width: 380px;
  order: 2; /* image always second on mobile */
}

@media (min-width: 768px) {
  .hero-image-wrap {
    width: 42%;
    max-width: 460px;
    order: 0;
  }
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-logo {
  height: 70px;
  width: auto;
  display: block;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-logo {
    margin-inline: 0;
  }
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-heading-accent {
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-sub { margin-inline: 0; }
}

.hero-cta {
  font-size: 1.05rem;
  padding: 0.9rem 2.25rem;
}

/* ============================================================
   WHO WE WORK WITH
   ============================================================ */
.who-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .who-grid { grid-template-columns: repeat(4, 1fr); }
}

.who-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.who-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.who-icon {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.who-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.who-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-card-featured {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(145deg, #fff 70%, var(--gold-pale) 100%);
}

.service-badge {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.65;
  flex: 1;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 340px 1fr;
    gap: 4rem;
  }
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.about-image-placeholder {
  width: 280px;
  height: 340px;
  background: var(--gray-light);
  border: 2px dashed var(--gray-mid);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-text);
  font-size: 0.9rem;
}

.about-image-placeholder span {
  font-size: 3rem;
}

.about-eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text .btn {
  margin-top: 0.75rem;
}

/* ============================================================
   EVENTS SLIDESHOW
   ============================================================ */

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.slideshow-track {
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.95;
}

/* Arrow buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 42, 74, 0.72);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.slide-btn:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.slide-btn-prev { left: 1rem; }
.slide-btn-next { right: 1rem; }

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slide-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.testimonial-quote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-author span {
  color: var(--gray-text);
  font-size: 0.82rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.5;
}

.contact-item a {
  color: var(--text-light);
}

.contact-item a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.contact-cta-wrap {
  margin-top: 0.5rem;
}

.contact-map-placeholder {
  background: var(--gray-light);
  border: 2px dashed var(--gray-mid);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gray-text);
  font-size: 1rem;
}

.contact-map-placeholder span {
  font-size: 3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}

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

@media (min-width: 640px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .footer-layout {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-img-footer {
  height: 36px;
}

.logo-fallback-footer {
  font-size: 1.05rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 1.25rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   ACCESSIBILITY HELPERS
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .nav-toggle, .lang-toggle { display: none; }
  .hero { min-height: auto; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.75em; color: #555; }
}
