/* style.css */

/* CSS Variables */
:root {
  --primary-color: #0A2F5B; /* Deep Blue */
  --primary-color-darker: #082240;
  --accent-color: #F57C00; /* Complementary Orange */
  --accent-color-darker: #D86A00;
  --light-accent-color: #4FC3F7; /* Light Blue for links etc. */

  --text-color-dark: #333333;
  --text-color-medium: #555555;
  --text-color-light: #FFFFFF;
  --text-color-hero: #FFFFFF;
  --text-color-footer: #E0E0E0;
  --text-color-footer-link: var(--light-accent-color);
  --text-color-footer-link-hover: var(--text-color-light);

  --section-title-color: #222222;
  --section-subtitle-color: #4a4a4a; /* Bulma's default grey */

  --background-color-body: #F0F4F8;
  --background-color-section-light: #FFFFFF;
  --background-color-section-alt: #e3eaf2;
  --background-color-footer: #1A1A2E;

  --card-background-color: #FFFFFF;
  --card-shadow: 0 8px 24px rgba(10, 47, 91, 0.12);
  --card-hover-shadow: 0 12px 32px rgba(10, 47, 91, 0.18);
  --card-border-radius: 12px; /* Biomorphic touch */

  --input-border-color: #B0BEC5;
  --input-focus-border-color: var(--primary-color);
  --input-focus-box-shadow: 0 0 0 0.125em rgba(10, 47, 91, 0.25);
  --input-border-radius: 8px;

  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;

  --header-height: 3.25rem; /* Default Bulma navbar height */
  --content-padding-top-fixed-header: calc(var(--header-height) + 2rem);

  --transition-speed: 0.3s;
  --transition-timing: ease-in-out;
}

/* Base and Global Styles */
html {
  scroll-behavior: smooth;
  background-color: var(--background-color-body);
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color-dark);
  line-height: 1.6;
  font-size: 1rem; /* Base font size for rem units, Bulma sets this to 16px */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
.title,
.subtitle {
  font-family: var(--font-primary);
  font-weight: 700;
}

.title {
  color: var(--section-title-color); /* General title color */
}

h1.title, h2.title, h3.title, h4.title, h5.title, h6.title {
    font-family: var(--font-primary);
    color: var(--section-title-color); /* Ensure consistent color for headings */
    font-weight: 900; /* More impactful titles */
}

h1.title.is-1 { font-size: 3rem; } /* Bulma default */
h2.title.is-2, .section-title { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3.title.is-3 { font-size: 1.75rem; }
h4.title.is-4 { font-size: 1.5rem; color: var(--primary-color);} /* Card titles */
h5.title.is-5 { font-size: 1.25rem; }

.subtitle {
    color: var(--text-color-medium);
    font-weight: 400;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem; /* Slightly larger body text */
}

a {
  color: var(--accent-color);
  transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
  color: var(--accent-color-darker);
}

.section {
  padding: 4rem 1.5rem; /* More vertical padding */
}
.section.is-medium { padding: 6rem 1.5rem; }
.section.is-large { padding: 9rem 1.5rem; }


/* Buttons - Global Styles */
.button, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-secondary);
  font-weight: 600;
  border-radius: var(--input-border-radius);
  transition: transform var(--transition-speed) ease-out, box-shadow var(--transition-speed) ease-out, background-color var(--transition-speed) ease-out;
  padding: 0.75em 1.5em; /* Custom padding for better feel */
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button.is-primary {
  background-color: var(--accent-color);
  border-color: transparent;
  color: var(--text-color-light);
}
.button.is-primary:hover {
  background-color: var(--accent-color-darker);
  color: var(--text-color-light);
}
.button.is-primary:focus {
    box-shadow: 0 0 0 0.125em rgba(245, 124, 0, 0.35); /* Accent color focus */
}

.button.is-primary.is-large {
    font-size: 1.3rem;
    padding: 1em 2em;
}

/* Cards - Global Styles */
.card {
  background-color: var(--card-background-color);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
  display: flex; /* For STRICT centering */
  flex-direction: column; /* For STRICT centering */
  height: 100%; /* Make cards in a row equal height */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
}

.card .card-image { /* Bulma default class for image wrapper */
    position: relative; /* For potential overlays if needed */
}

.card .card-image .image-container { /* Custom class for strict control */
    height: 200px; /* Fixed height */
    overflow: hidden;
    width: 100%;
}
.card .card-image .image-container img,
.card .card-image > img { /* If img is direct child of card-image */
    width: 100%;
    height: 100%; /* Ensure img fills its fixed height container */
    object-fit: cover; /* STROGO: object-fit: cover */
    display: block; /* Remove bottom space */
}

.card .card-content {
  padding: 1.5rem;
  text-align: center; /* STROGO: центрирование содержимого */
  flex-grow: 1; /* Allow content to grow and push footer down in flex cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes card-footer (if any) to bottom */
}
.card .card-content .title {
    color: var(--primary-color); /* Specific title color for cards */
    margin-bottom: 0.75rem;
}
.card .card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color-medium);
}

/* Forms - Global Styles */
.input, .textarea, .select select {
  border-radius: var(--input-border-radius);
  border: 1px solid var(--input-border-color);
  font-family: var(--font-secondary);
  transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.input:focus, .textarea:focus, .select select:focus,
.input.is-focused, .textarea.is-focused, .select select.is-focused {
  border-color: var(--input-focus-border-color);
  box-shadow: var(--input-focus-box-shadow);
}
.label {
    color: var(--text-color-dark);
    font-weight: 600;
}

/* Header & Navigation */
.header .navbar {
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white for a futuristic feel */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed; /* Fixed header */
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

body > main, .main-content-area { /* Add padding to main content if header is fixed */
    padding-top: var(--header-height);
}
/* For specific pages like privacy/terms as per prompt */
.privacy-page-content, .terms-page-content {
    padding-top: var(--content-padding-top-fixed-header);
}

.navbar-item, .navbar-link {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--primary-color);
  transition: color var(--transition-speed) var(--transition-timing);
}
.navbar-item:hover, .navbar-link:hover, .navbar-item.is-active {
  background-color: transparent !important; /* Override Bulma */
  color: var(--accent-color) !important;
}
.navbar-burger {
    color: var(--primary-color);
}
.navbar-burger:hover {
    background-color: transparent; /* Override Bulma */
    color: var(--accent-color);
}
.navbar-brand .title {
    color: var(--primary-color);
}


/* Footer */
.footer {
  background-color: var(--background-color-footer);
  color: var(--text-color-footer);
  padding: 3rem 1.5rem 3rem; /* Adjusted padding */
}
.footer .title {
  color: var(--text-color-light); /* White titles in footer */
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer p {
  color: #B0BEC5; /* Lighter grey for footer paragraphs */
  font-size: 0.9rem;
}
.footer a {
  color: var(--text-color-footer-link);
  font-weight: 500;
}
.footer a:hover {
  color: var(--text-color-footer-link-hover);
  text-decoration: underline;
}
.footer ul {
  list-style: none;
  padding-left: 0;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer .social-links a { /* Specific for social links if needed, but general footer a covers it */
    /* Add icons or specific styling here if desired, but prompt wants text */
}

/* Sections Specific Styles */

/* Hero Section */
#hero.hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  /* background-attachment: fixed; - This is in HTML, ensure it works with overlay */
}
#hero.hero::before { /* Darkening overlay for text readability */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)); /* Adjust opacity */
  z-index: 1;
}
#hero .hero-body {
  position: relative;
  z-index: 2; /* Content above overlay */
  display: flex;
  justify-content: center;
  align-items: center;
}
#hero .hero-title { /* Already white in HTML inline style */
  color: var(--text-color-hero);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  font-weight: 900;
  font-size: 3.5rem; /* Larger hero title */
}
@media screen and (max-width: 768px) {
  #hero .hero-title {
    font-size: 2.5rem;
  }
}
#hero .hero-subtitle { /* Already white in HTML inline style */
  color: var(--text-color-hero);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  font-weight: 400; /* Lighter weight for subtitle */
  font-size: 1.5rem;
}

/* Features Section */
#features {
    background-color: var(--background-color-body); /* Slightly different from default page bg */
}
#features .card .icon { /* If icons are used in feature cards */
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Vision Section */
#vision.parallax-background {
  color: var(--text-color-light); /* Assuming dark parallax bg */
}
#vision.parallax-background .section-title {
    color: var(--text-color-light); /* White title for dark parallax bg */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#vision p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Process Section (Adapted from Webinars) */
#process {
    background-color: var(--background-color-section-light);
}
#process .card .icon i { /* Styles for FA icons */
    color: var(--primary-color); /* As per HTML inline style */
    transition: transform var(--transition-speed) var(--transition-timing);
}
#process .card:hover .icon i {
    transform: scale(1.1);
}
#process .card h4.title {
    margin-top: 0.5rem;
    font-size: 1.3rem;
}

/* External Resources Section */
#external-resources {
    background-color: var(--background-color-section-alt);
}
#external-resources .resource-list li {
    background-color: var(--card-background-color);
    padding: 1.5rem;
    border-radius: var(--biomorphic-border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
#external-resources .resource-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
#external-resources .resource-list h4.title a {
    color: var(--primary-color);
}
#external-resources .resource-list h4.title a:hover {
    color: var(--accent-color);
}
#external-resources .resource-list p {
    font-size: 0.9rem;
    color: var(--text-color-medium);
}


/* Testimonials Section (Adapted from Press) */
#testimonials {
    background-color: var(--background-color-body);
}
#testimonials .card {
    /* STROGO: align-items: center is already on .card from global styles */
}
#testimonials .card-image img { /* Avatar styling */
  border-radius: 50%;
  width: 120px !important; /* Override Bulma's .image default, if any */
  height: 120px !important;
  object-fit: cover;
  margin: 1rem auto; /* STROGO: margin: 0 auto for centering */
  display: block; /* STROGO: display block for margin auto to work */
  border: 3px solid var(--accent-color);
}
#testimonials .card-content p.is-italic {
  font-style: italic;
  color: var(--text-color-medium);
  margin-bottom: 1rem;
}
#testimonials .card-content p.has-text-weight-bold {
  color: var(--primary-color);
  font-size: 1rem;
}

/* FAQ Section */
#faq.parallax-background {
  color: var(--text-color-light); /* Assuming dark parallax bg */
}
#faq.parallax-background .section-title,
#faq.parallax-background .subtitle {
    color: var(--text-color-light); /* White title for dark parallax bg */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.faq-item {
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent for potential glassmorphism */
  /* backdrop-filter: blur(8px); For glassmorphism, enable if desired and check browser support */
  padding: 1.5rem;
  border-radius: var(--biomorphic-border-radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.faq-item h4.title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: var(--text-color-dark); /* Dark text on light FAQ item background */
  font-size: 0.95rem;
}

/* Contact Section */
#contact {
    background-color: var(--background-color-section-light);
}
#contact form {
    margin-top: 2rem;
}
#contact .checkbox a { /* Links inside checkbox label */
    color: var(--primary-color);
    text-decoration: underline;
}
#contact .checkbox a:hover {
    color: var(--accent-color);
}
#contact .field.is-grouped.is-grouped-centered {
    margin-top: 2rem;
}

/* Parallax Background Helper (already used in HTML with inline styles) */
.parallax-background {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.parallax-background::before { /* General overlay for parallax backgrounds */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Default overlay, can be overridden */
  z-index: 1;
}
.parallax-background > .container { /* Ensure content is above overlay */
  position: relative;
  z-index: 2;
}


/* Page Specific Styles */

/* success.html */
body.success-page {
  display: flex;
  flex-direction: column; /* To allow header/footer if they were present */
  min-height: 100vh;
  background-color: var(--primary-color); /* Or a calming gradient */
}
.success-page .success-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-color-light);
}
.success-page .success-container .icon {
  font-size: 5rem;
  color: var(--accent-color); /* Or a success green */
  margin-bottom: 2rem;
}
.success-page .success-container h1 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color-light);
}
.success-page .success-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color-light);
}
.success-page .success-container .button {
  background-color: var(--accent-color);
  color: var(--text-color-light);
}
.success-page .success-container .button:hover {
  background-color: var(--accent-color-darker);
}


/* privacy.html, terms.html */
/* body padding-top or main margin-top is handled globally for fixed header */
.static-page-content-wrapper { /* Wrap content of privacy/terms in this */
    padding: var(--content-padding-top-fixed-header) 1.5rem 3rem 1.5rem; /* Top padding + bottom padding */
    background-color: var(--background-color-section-light);
    min-height: calc(100vh - var(--header-height)); /* Ensure it takes decent height */
}
.static-page-content-wrapper .title.is-1,
.static-page-content-wrapper .title.is-2 {
    margin-bottom: 2rem;
    text-align: left;
}
.static-page-content-wrapper h3,
.static-page-content-wrapper h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}


/* Read More Link Style */
.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  position: relative;
  padding-right: 1.5em; /* Space for arrow */
}
.read-more-link::after {
  content: '→'; /* Or use a FontAwesome icon */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover {
  color: var(--accent-color-darker);
}
.read-more-link:hover::after {
  right: -0.3em; /* Arrow moves slightly on hover */
}

/* Animations from ScrollReveal - basic reveal states */
/* ScrollReveal adds 'is-visible'. These are starting states for elements SR will animate. */
.reveal-text, .reveal-text-delay, .reveal-text-delay-more,
.reveal-button, .reveal-card, .reveal-card-delay1, .reveal-card-delay2,
.reveal-card-delay3, .reveal-card-delay4, .reveal-card-delay5,
.reveal-step, .reveal-step-delay1, .reveal-step-delay2, .reveal-step-delay3,
.reveal-testimonial, .reveal-testimonial-delay1, .reveal-testimonial-delay2,
.reveal-faq-item {
  opacity: 0;
  visibility: hidden; /* Hide element until ScrollReveal makes it visible */
}

/* Responsive adjustments (Bulma handles most, add specifics if needed) */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .section-title, h2.title.is-2 {
    font-size: 2rem;
  }
  .title.is-1 {
    font-size: 2.2rem;
  }
  .columns.is-multiline .column {
      margin-bottom: 1.5rem; /* Spacing for stacked cards on mobile */
  }
  .footer {
    text-align: center;
  }
  .footer .columns > .column {
    margin-bottom: 2rem;
  }
}

/* Fix for Bulma columns direct children margin */
.columns:last-child {
    margin-bottom: -0.75rem; /* Bulma default, might be overridden by card margins */
}
.columns.is-multiline .column {
    padding-bottom: 1.5rem; /* Ensure cards have space below them if they stack */
}