/* AutoPayPro - Modern Auto Insurance Web Design
   Core Styles, CSS Variables & Reset
*/

/* --------------------------------------------------------
   Design Tokens & CSS Variables
-------------------------------------------------------- */
:root {
  /* Colors */
  --primary-blue: #084c61;
  --secondary-teal: #177e89;
  --accent-orange: #f26419;
  --dark-slate: #1f271b;
  --light-gray: #f4f6f8;
  --white: #ffffff;
  --black: #111111;

  /* Neutrals */
  --text-main: #333333;
  --text-muted: #666666;
  --border-light: #e0e6ed;

  /* Glassmorphism Values */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-slate);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

/* --------------------------------------------------------
   Typography Utilities
-------------------------------------------------------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* --------------------------------------------------------
   Buttons
-------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(8, 76, 97, 0.39);
}

.btn-primary:hover {
  background-color: var(--secondary-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 126, 137, 0.4);
}

.btn-accent {
  background-color: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(242, 100, 25, 0.39);
}

.btn-accent:hover {
  background-color: #d15011;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 100, 25, 0.4);
}

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

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

/* --------------------------------------------------------
   Header & Navigation
-------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  height: 70px;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-slate);
  font-size: 1rem;
  position: relative;
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--dark-slate);
  transition: all 0.3s ease-in-out;
}

/* --------------------------------------------------------
   Hero Section Base Styles
-------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* --------------------------------------------------------
   Glass Cards & Modern UI Utilities
-------------------------------------------------------- */
.glass-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------
   Footer
-------------------------------------------------------- */
.footer {
  background-color: var(--dark-slate);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-logo span {
  color: var(--accent-orange);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-orange);
}

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

.footer-links a {
  color: #a0aab2;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aab2;
  font-size: 0.9rem;
}

/* --------------------------------------------------------
   Animations (Intersection Observer targets)
-------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------
   Responsive Design
-------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Hamburger Animation */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .section-title {
    font-size: 2rem;
  }
}
