@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  /* Color Palette (HSL based for easy alpha manipulation) */
  --primary-hue: 224;
  --primary-sat: 64%;
  --primary-light: 33%;
  --primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light)); /* #1E3A8A */
  --primary-hover: hsl(var(--primary-hue), var(--primary-sat), 25%);

  --accent-hue: 46;
  --accent-sat: 65%;
  --accent-light: 52%;
  --accent: hsl(var(--accent-hue), var(--accent-sat), var(--accent-light)); /* #D4AF37 */
  --accent-hover: hsl(var(--accent-hue), var(--accent-sat), 42%);

  --navy: hsl(222, 47%, 11%); /* #0F172A */
  --teal: hsl(173, 80%, 40%); /* #14B8A6 */
  --soft-blue: hsl(214, 95%, 68%); /* #60A5FA */
  
  --bg-white: hsl(0, 0%, 100%);
  --bg-light: hsl(210, 40%, 98%); /* #F8FAFC */
  --text-dark: hsl(215, 28%, 17%); /* #1F2937 */
  --text-muted: hsl(220, 9%, 46%); /* #6B7280 */
  --border-color: hsl(214, 32%, 91%);
  
  /* Typography */
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Layout and Effects */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.text-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* ==========================================================================
   LAYOUTS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--navy);
  color: var(--bg-white);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--bg-white);
}

.section-dark p {
  color: hsl(222, 30%, 85%);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.text-center {
  text-align: center;
}

.site-header-group {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--navy);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

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

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
}

.header-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.header-nav.scrolled .nav-logo {
  color: var(--primary);
}

.header-nav.scrolled .nav-link {
  color: var(--text-dark);
}

.header-nav.scrolled .nav-link.active {
  color: var(--primary);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bg-white);
  transition: var(--transition);
}

.nav-logo-image {
  height: 42px;
  width: auto;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--bg-white);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background-color: var(--bg-white);
  transition: var(--transition);
}

.header-nav.scrolled .nav-hamburger span {
  background-color: var(--navy);
}

/* Open menu state for hamburger */
.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  padding-top: var(--header-height);
  background-color: #140e0a;
  color: var(--bg-white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.0;
  z-index: 0;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--bg-white) !important;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: hsl(222, 30%, 85%);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Background waves */
.wave-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--soft-blue);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: hsl(var(--primary-hue), var(--primary-sat), 95%);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--accent);
  color: var(--navy);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.process-item {
  position: relative;
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.process-step {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--primary-hue), var(--primary-sat), 92%);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 0;
  transition: var(--transition);
}

.process-item:hover .process-step {
  color: hsl(var(--accent-hue), var(--accent-sat), 90%);
}

.process-content {
  position: relative;
  z-index: 1;
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  padding-right: 2.5rem;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-card {
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 3rem;
  position: relative;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.testimonial-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.testimonial-author-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: var(--transition);
}

/* Horizontal line */
.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

/* Vertical line */
.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 2rem;
  color: var(--text-muted);
}

.faq-answer p {
  padding-bottom: 1.5rem;
  margin: 0;
}

/* Open accordion states */
.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s ease-in;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px hsl(var(--primary-hue), var(--primary-sat), 95%);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 2rem;
}

.alert-message {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  display: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert-message.success {
  background-color: hsl(142, 70%, 92%);
  color: hsl(142, 76%, 22%);
  border: 1px solid hsl(142, 72%, 80%);
  display: block;
}

.alert-message.error {
  background-color: hsl(0, 84%, 94%);
  color: hsl(0, 74%, 25%);
  border: 1px solid hsl(0, 72%, 85%);
  display: block;
}

/* ==========================================================================
   CONTACT DETAILS PAGE
   ========================================================================== */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: hsl(var(--accent-hue), var(--accent-sat), 94%);
  color: var(--navy);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   INNER PAGE HEADER (HERO ARCHETYPE)
   ========================================================================== */
.inner-hero {
  background-color: #140e0a;
  color: var(--bg-white);
  padding: 10rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.inner-hero-container {
  position: relative;
  z-index: 2;
}

.inner-hero h1 {
  margin-bottom: 1rem;
  color: var(--bg-white) !important;
}

.inner-hero p {
  color: hsl(222, 30%, 85%);
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy);
  color: hsl(222, 30%, 85%);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: hsl(222, 20%, 75%);
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: hsl(222, 20%, 75%);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(222, 20%, 65%);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ==========================================================================
   WHATSAPP FLOAT WIDGET
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #25D366;
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  background-color: #20BA5A;
}

.whatsapp-icon {
  font-size: 1.5rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .btn.nav-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 991px) {
  .container {
    padding: 0 1.5rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Mobile Menu */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--navy);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: 0.4s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
    color: var(--bg-white);
  }
  
  .nav-hamburger {
    display: flex;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}
