/*
 * Eazimate Main Stylesheet
 * Mobile-first approach
 */

/* ========================================================================
   CSS Custom Properties (Design System)
   ======================================================================== */

:root {
  /* Colors */
  --color-primary: #df5e39;
  --color-primary-light: #f4845f;
  --color-primary-dark: #c94f2f;
  --color-dark-purple: #211051;
  --color-navy: #252b42;
  --color-bg-light: #f7f8fc;
  --color-footer: #1a0a3e;
  --color-text: #5a6377;
  --color-text-dark: #1e2a3a;
  --color-off-white: #f8f7f8;
  --color-white: #ffffff;
  --color-border: #e4e7ee;
  --color-success: #16a34a;
  --color-error: #dc2626;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-ui: 'Varela Round', sans-serif;
  --font-accent: 'Playfair Display', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(30, 42, 58, 0.06), 0 1px 2px rgba(30, 42, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 42, 58, 0.08), 0 2px 4px rgba(30, 42, 58, 0.04);
  --shadow-lg: 0 12px 32px rgba(30, 42, 58, 0.1), 0 4px 8px rgba(30, 42, 58, 0.04);
  --shadow-xl: 0 20px 48px rgba(30, 42, 58, 0.12), 0 8px 16px rgba(30, 42, 58, 0.06);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

/* ========================================================================
   Base Styles
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

/* ========================================================================
   Typography
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: var(--spacing-sm);
}

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

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================================================
   Accessibility
   ======================================================================== */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ========================================================================
   Header
   ======================================================================== */

.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 38px;
  width: auto;
}

/* ========================================================================
   Navigation
   ======================================================================== */

.site-nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 10;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  position: relative;
  transition: background-color var(--transition-base);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  left: 0;
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--color-text);
  padding: 0.5rem 0.875rem;
  display: block;
  transition: color var(--transition-base);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Nav CTA Button */
.nav-cta {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.nav-cta .btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta .btn-nav:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(223, 94, 57, 0.3);
}

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

.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  list-style: none;
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-text);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  transition: all var(--transition-base);
}

.nav-dropdown a:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-light);
}

/* ========================================================================
   Main Content
   ======================================================================== */

main {
  min-height: 60vh;
}

/* Pages that aren't the homepage get default padding */
main > .container {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 94, 57, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 94, 57, 0.2);
}

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

.btn-white:hover {
  background: var(--color-bg-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ========================================================================
   Forms
   ======================================================================== */

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

label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--color-text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-dark);
  background: var(--color-white);
  transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(223, 94, 57, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input.error,
textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ========================================================================
   Cards (shared)
   ======================================================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-smooth);
}

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

/* ========================================================================
   Page Hero (for secondary pages)
   ======================================================================== */

.page-hero {
  background: linear-gradient(135deg, #250B54 0%, #1a0840 60%, #140630 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(223, 94, 57, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ========================================================================
   Alerts
   ======================================================================== */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========================================================================
   Section Styling
   ======================================================================== */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
  background: linear-gradient(180deg, var(--color-footer) 0%, #120520 100%);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-base);
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================================================
   Scroll Reveal Animations
   ======================================================================== */

/* Scroll reveal: only hide when JS has loaded (body gets .js-ready class) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================================================
   Utility Classes
   ======================================================================== */

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none;
}
