/* ============================================
   IRVODA - Design System & Global Styles
   ============================================ */

:root {
  --primary: #003153;
  --secondary: #7D9A8D;
  --accent: #C5943A;
  --neutral-light: #E0DDD5;
  --neutral-bg: #F9F9F9;
  --neutral-dark: #333333;
  --white: #FFFFFF;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'Georgia', 'Garamond', serif;
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--neutral-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark);
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.8;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.full-width {
  width: 100%;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--neutral-light);
  box-shadow: var(--shadow-sm);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 var(--spacing-md);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo img {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
}

nav a {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

nav a.active {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

footer a {
  color: var(--neutral-light);
}

footer a:hover {
  color: var(--accent);
}

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

.footer-section h4 {
  color: var(--accent);
  margin-bottom: var(--spacing-md);
  font-size: 16px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.disclaimer {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: 14px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(0, 49, 83, 0.95) 100%);
  color: var(--white);
  padding: var(--spacing-2xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: var(--spacing-md);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: var(--spacing-2xl) var(--spacing-md);
}

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

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

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

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

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

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

.grid-cols-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.card-dark {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.card-dark h3 {
  color: var(--accent);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
}

.card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-dark);
}

/* ============================================
   BUTTONS
   ============================================ */

.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--primary);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.button-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.button-accent:hover {
  background-color: darken(#C5943A, 10%);
  border-color: darken(#C5943A, 10%);
}

.button-sm {
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 14px;
}

.button-lg {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 18px;
}

/* ============================================
   FORMS
   ============================================ */

form {
  max-width: 600px;
}

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

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

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

input.error,
textarea.error {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.05);
}

.error-message {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

/* ============================================
   IMAGES
   ============================================ */

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

.image-full {
  width: 100%;
  height: auto;
}

.image-lg {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.image-md {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}

.image-sm {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.two-column-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-column-image {
  width: 100%;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-block {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  margin-bottom: var(--spacing-lg);
}

.content-highlight {
  background: var(--neutral-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin: var(--spacing-md) 0;
  border-left: 4px solid var(--secondary);
}

.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neutral-light), transparent);
  margin: var(--spacing-xl) 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--neutral-light);
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

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

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: rgba(51, 51, 51, 0.6);
}

.text-sm {
  font-size: 14px;
}

.text-lg {
  font-size: 20px;
}

.text-xl {
  font-size: 24px;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.flex {
  display: flex;
}

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

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

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  nav ul {
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-md);
  }
  
  nav ul {
    gap: var(--spacing-sm);
  }
  
  .container,
  .container-wide {
    padding: 0 var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .button,
  button,
  input[type="submit"] {
    width: 100%;
  }
}
