/* ============================================
   CSS Variables
   ============================================ */
:root {
  --color-primary: #1a365d;
  --color-primary-dark: #0f2440;
  --color-secondary: #d69e2e;
  --color-secondary-dark: #b77a1c;
  --color-accent: #3182ce;
  --color-bg-white: #ffffff;
  --color-bg-light: #f7fafc;
  --color-bg-gray: #edf2f7;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --color-error: #c53030;
  --color-success: #276749;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

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

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-white);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-secondary);
}

/* Navigation */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
}

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

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger--active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav--open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg-white);
  padding: 1.5rem;
  animation: slideDown 0.3s ease;
}

.nav--open .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.nav--open .nav-link {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-bg-white);
}

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

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-bg-white);
  padding: 3rem 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.hero h1,
.hero h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.75rem;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.hero-image {
  display: none;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   About Preview
   ============================================ */
.about-preview {
  background: var(--color-bg-light);
  text-align: center;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--color-secondary);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  margin-bottom: 0;
}

.services-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   Lead Form Section
   ============================================ */
.lead-form-section {
  background: var(--color-bg-light);
}

.lead-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lead-form-image {
  display: none;
}

.lead-form-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.lead-form-content {
  background: var(--color-bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lead-form-content h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.lead-form-content > p {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-white);
  color: var(--color-text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

.required {
  color: var(--color-error);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-secondary);
}

.form-checkbox label {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-message--success {
  background: #c6f6d5;
  color: var(--color-success);
  border: 1px solid #9ae6b4;
}

.form-message--error {
  background: #fed7d7;
  color: var(--color-error);
  border: 1px solid #fc8181;
}

.btn-submit {
  width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-bg-white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: var(--color-bg-white);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bg-white);
}

.footer-logo:hover {
  color: var(--color-secondary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--color-secondary);
}

.footer-contact a:hover {
  color: var(--color-bg-white);
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-secondary);
}

.footer-hours ul {
  font-size: 0.9rem;
}

.footer-hours li {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-hours span {
  color: var(--color-bg-white);
  font-weight: 500;
}

.footer-disclaimer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================
   Cookie Banner & Modal
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

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

.cookie-banner__text h3 {
  margin-bottom: 0.5rem;
}

.cookie-banner__text p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.cookie-btn--accept {
  background: var(--color-secondary);
  color: var(--color-bg-white);
}

.cookie-btn--accept:hover {
  background: var(--color-secondary-dark);
}

.cookie-btn--reject {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.cookie-btn--reject:hover {
  background: var(--color-bg-light);
}

.cookie-btn--customize {
  background: transparent;
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-btn--save {
  background: var(--color-primary);
  color: var(--color-bg-white);
  width: 100%;
  margin-top: 1rem;
}

.cookie-btn--save:hover {
  background: var(--color-primary-dark);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-modal__content {
  position: relative;
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-modal__header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cookie-modal__close:hover {
  color: var(--color-text);
}

.cookie-category {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cookie-category h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.cookie-category__badge {
  background: var(--color-secondary);
  color: var(--color-bg-white);
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
}

.cookie-category p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* Cookie Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-bg-white);
  border-radius: 50%;
  transition: var(--transition);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--color-secondary);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  background: var(--color-accent);
  cursor: not-allowed;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  margin-bottom: 0.25rem;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-gray);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ============================================
   Responsive: Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  
  .section {
    padding: 5rem 0;
  }
  
  /* Header */
  .hamburger {
    display: none;
  }
  
  .nav {
    display: block;
  }
  
  .nav-list {
    gap: 0.25rem;
  }
  
  /* Hero */
  .hero {
    padding: 4rem 0;
  }
  
  .hero .container {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-content {
    flex: 1;
    text-align: left;
  }
  
  .hero-image {
    display: block;
    flex: 1;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Lead Form */
  .lead-form-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
  
  .lead-form-image {
    display: block;
    flex: 1;
  }
  
  .lead-form-content {
    flex: 1;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .map-container {
    height: 100%;
    min-height: 350px;
  }
}

/* ============================================
   Responsive: Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  
  .container {
    padding: 0 2rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
  }
}
