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

:root {
  --color-primary: #002447;
  --color-secondary: #00D4FF;
  --color-accent: #FF3E55;
  --color-text: #1a1a1a;
  --color-text-light: #4b5563;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-white: #ffffff;
  --color-dark: #001226;

  --font-family: 'Space Grotesk', sans-serif;
  --font-size-base: 18px;
  --line-height-base: 1.7;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 1px 3px rgba(0,36,71,0.1);
  --shadow-md: 0 10px 25px -5px rgba(0,36,71,0.1), 0 8px 10px -6px rgba(0,36,71,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,36,71,0.2), 0 8px 10px -6px rgba(0,36,71,0.1);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }

p { margin-bottom: var(--space-md); }

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

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

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

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

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

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

.btn-accent:hover {
  background-color: #e0354a;
  transform: scale(1.05);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 36, 71, 0.1);
  padding: var(--space-sm) 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-base);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition-base);
}

.staircase-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.staircase-item {
  grid-column: span 6;
  position: relative;
}

.staircase-item:nth-child(even) {
  margin-top: var(--space-2xl);
}

.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--color-secondary);
  opacity: 0.05;
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid rgba(0, 36, 71, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

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

.metric-value {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.metric-label {
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: center;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper img {
  transition: transform 1s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-bg-alt);
  padding: var(--space-xl);
  border-left: 4px solid var(--color-accent);
}

.testimonial-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 36, 71, 0.1);
  padding: var(--space-md) 0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  padding: var(--space-sm) 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding-right: var(--space-xl);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-toggle {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-secondary);
  position: relative;
}

.faq-toggle::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background: var(--color-secondary);
  top: -9px;
  left: 9px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle::after {
  transform: rotate(90deg);
}

footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}

footer h4 {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-lg);
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-buttons {
  display: flex;
  gap: var(--space-md);
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 36, 71, 0.2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.error-msg {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.success-msg {
  background: #d1fae5;
  color: #065f46;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  display: none;
}

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-2xl) var(--space-xl);
    transition: var(--transition-base);
  }

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

  .nav-links a {
    color: var(--color-white);
    font-size: 1.5rem;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--color-white); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); background: var(--color-white); }

  .grid-3 { grid-template-columns: 1fr; }
  .asymmetric-grid { grid-template-columns: 1fr; }
  .staircase-item { grid-column: span 12; margin-top: 0 !important; }
  
  .hero { padding: 8rem 0 4rem; text-align: center; }
  .hero-content { margin: 0 auto; }
  
  .metric-value { font-size: 3rem; }
  
  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.25rem; }
  .btn { width: 100%; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: var(--space-lg) 0;
  flex-grow: 1;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: 1rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-hero {
  height: 50vh;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
