/* style.css */

/* -------------------------------------------------------------------------
   0. ROOT VARIABLES & BASIC SETUP
---------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+Pro:wght@400;600;700&display=swap");

:root {
  --font-heading: "Playfair Display", serif;
  --font-body: "Source Sans Pro", sans-serif;

  /* Triadic Color Scheme with Retro/Biomorphic feel */
  --color-primary: #077187; /* Deep Teal - Main */
  --color-primary-dark: #055a6a; /* Darker Teal for hovers/shades */
  --color-primary-light: #0a8faa; /* Lighter Teal for accents */

  --color-secondary: #f0c987; /* Pale Gold - Accent 1 / Buttons */
  --color-secondary-dark: #e6b86a; /* Darker Gold for hovers/shades */

  --color-accent: #7a4419; /* Burnt Orange/Brown - Accent 2 / Headings / Text on light button */
  --color-accent-light: #a3612f; /* Lighter Accent for hovers */

  --color-background-light: #faf0e6; /* Linen - Main BG */
  --color-background-medium: #e8dacc; /* Slightly darker for subtle layering */
  --color-background-dark: #2a3d45; /* Dark Slate Gray - Footer/Dark sections */

  --color-text-light: #ffffff;
  --color-text-dark: #333333; /* For body text on light backgrounds */
  --color-text-medium: #555555;
  --color-text-on-dark: #eaeaea; /* Light grey for text on dark backgrounds */
  --color-text-link: var(--color-primary);
  --color-text-link-hover: var(--color-primary-dark);

  --border-radius-soft: 8px;
  --border-radius-medium: 15px; /* Biomorphic touch */
  --border-radius-round: 50%;

  --shadow-soft: 0 4px 12px rgba(42, 61, 69, 0.08);
  --shadow-medium: 0 8px 20px rgba(42, 61, 69, 0.12);
  --shadow-strong: 0 10px 25px rgba(42, 61, 69, 0.15);

  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Non-linear feel */
  --transition-fast: all 0.2s ease-in-out;

  --header-height: 70px; /* Approximate header height for padding */
}

/* -------------------------------------------------------------------------
   1. GLOBAL STYLES & TYPOGRAPHY
---------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(
    --color-background-light
  ); /* Base background for html */
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-accent); /* Default heading color for sections */
  font-weight: 700;
  line-height: 1.3;
}

.title {
  /* Bulma .title class */
  font-family: var(--font-heading);
  color: var(--color-accent);
}
.subtitle {
  /* Bulma .subtitle class */
  font-family: var(--font-body);
  color: var(--color-text-medium);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}

img {
  object-fit: cover;
}

#cookieConsentPopup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
#cookieConsentPopup p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
}
#cookieAcceptButton {
  background-color: var(--color-secondary);
  color: var(--color-accent);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
}
#cookieAcceptButton:hover {
  background-color: #e6b86a;
}

.content a {
  /* For links within general content blocks */
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 1px;
}
.content a:hover {
  color: var(--color-primary-dark);
  text-decoration: none; /* Remove default underline, use custom */
}
.content a::after {
  content: "";
  position: absolute;
  bottom: -2px; /* Position below text */
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease-in-out;
}
.content a:hover::after {
  width: 100%;
}

/* Section title styling */
.section-title {
  text-align: center;
  margin-bottom: 3rem; /* Increased margin */
  font-size: 2.8rem; /* Slightly larger */
  color: var(--color-accent);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05); /* Softer shadow */
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
}

/* -------------------------------------------------------------------------
   2. HEADER / NAVIGATION
---------------------------------------------------------------------------- */
.header {
  background-color: rgba(
    250,
    240,
    230,
    0.85
  ); /* --color-background-light with alpha */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
}

.navbar {
  min-height: var(--header-height);
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  font-weight: 700;
}
.navbar-brand .navbar-item:hover {
  color: var(--color-primary-dark);
  background-color: transparent !important;
}

.navbar-item,
.navbar-link {
  font-weight: 600;
  color: var(--color-text-dark);
  transition: var(--transition-fast);
}
.navbar-item:hover,
.navbar-link:hover {
  color: var(--color-primary);
  background-color: rgba(
    7,
    113,
    135,
    0.05
  ) !important; /* var(--color-primary) with low alpha */
}
.navbar-item.is-active {
  /* For active page indication, if needed */
  color: var(--color-primary);
  font-weight: 700;
}

.navbar-burger {
  color: var(--color-primary);
  height: var(--header-height);
  width: var(--header-height);
}
.navbar-burger span {
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}
.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: rgba(
      250,
      240,
      230,
      0.98
    ); /* --color-background-light with higher alpha */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }
  .navbar-menu.is-active {
    display: block; /* Ensure it's visible */
  }
}

/* -------------------------------------------------------------------------
   3. HERO SECTION
---------------------------------------------------------------------------- */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For overlay */
  color: var(--color-text-light); /* Default text color for hero */
}
/* Overlay is handled by inline style in HTML using image-overlay-text */
.image-overlay-text {
  position: relative;
}
.image-overlay-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.45)
  ); /* Consistent overlay */
  z-index: 1;
}
.image-overlay-text .hero-body {
  /* Ensure content is above overlay */
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + 3rem); /* Adjust for fixed header */
  padding-bottom: 3rem;
}

#hero .title {
  color: var(--color-text-light) !important; /* Ensure white, override Bulma */
  font-size: 3.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
#hero .subtitle {
  color: var(--color-text-light) !important; /* Ensure white */
  font-size: 1.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}
@media screen and (max-width: 768px) {
  #hero .title {
    font-size: 2.5rem;
  }
  #hero .subtitle {
    font-size: 1.2rem;
  }
  .image-overlay-text .hero-body {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 1.5rem;
  }
}

/* -------------------------------------------------------------------------
   4. GENERAL SECTION STYLING
---------------------------------------------------------------------------- */
.section {
  padding: 4rem 1.5rem; /* Default section padding */
}
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
}

/* Sections with background image */
.section[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#innovation[style*="background-image"] {
  background-attachment: fixed; /* Parallax effect */
  position: relative; /* For pseudo-element overlay */
}
#innovation[style*="background-image"]::before {
  /* Dark overlay for text readability */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
  z-index: 0;
}
#innovation .container {
  /* Ensure content is above overlay */
  position: relative;
  z-index: 1;
}
#innovation .section-title,
#innovation .subtitle {
  color: var(--color-text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* -------------------------------------------------------------------------
   5. CARD COMPONENTS
---------------------------------------------------------------------------- */
.card {
  background-color: var(--color-text-light);
  border-radius: var(--border-radius-medium); /* Biomorphic touch */
  box-shadow: var(--shadow-soft);
  overflow: hidden; /* For rounded corners with images */
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%; /* For consistent height in columns */
}
.card:hover {
  transform: translateY(-8px) scale(1.02); /* Non-linear pop */
  box-shadow: var(--shadow-strong);
}

.card .card-image {
  /* Bulma's card-image */
  display: flex; /* Centering content */
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Crucial for img object-fit and border-radius */
  border-top-left-radius: var(--border-radius-medium); /* Match card */
  border-top-right-radius: var(--border-radius-medium); /* Match card */
}
.card .card-image figure.image {
  /* Bulma's figure inside card-image */
  margin: 0; /* Reset Bulma's default margin on figure if any */
  width: 100%;
  height: 220px; /* Consistent height for card images */
}
.card .card-image img {
  width: 100%;
  height: 100%; /* Fill the figure */
  object-fit: cover; /* Crop to fit, maintain aspect ratio */
  display: block; /* Removes bottom space under img */
}

.card .card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to take available space */
  display: flex;
  flex-direction: column;
}
.card .card-content .content {
  flex-grow: 1; /* Push button/link to bottom if any */
}
.card .card-content .title {
  /* Title inside card */
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.card .card-content .subtitle {
  color: var(--color-text-medium);
  margin-bottom: 1rem;
}
.card .media + .content {
  /* Adjust spacing if media element is present (like in success stories) */
  margin-top: 1rem;
}

/* -------------------------------------------------------------------------
   6. BUTTONS (Global, complementing Bulma)
---------------------------------------------------------------------------- */
.button,
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-body);
  font-weight: 700; /* Bolder buttons */
  border-radius: var(--border-radius-soft);
  padding: 0.8em 1.8em; /* Slightly larger padding */
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent; /* Base border for consistency */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Primary Button Style */
.button.is-primary,
button.is-primary,
input[type="submit"].is-primary {
  background-color: var(--color-secondary);
  color: var(--color-accent) !important; /* Ensure high contrast text */
  border-color: var(--color-secondary);
}
.button.is-primary:hover,
button.is-primary:hover,
input[type="submit"].is-primary:hover {
  background-color: var(--color-secondary-dark);
  color: var(--color-accent) !important;
  border-color: var(--color-secondary-dark);
  transform: translateY(-4px) scale(1.03); /* Enhanced hover */
  box-shadow: var(--shadow-medium);
}

/* Link Outlined Button (used in workshop cards) */
.button.is-link.is-outlined {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: transparent;
  font-weight: 600;
}
.button.is-link.is-outlined:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(7, 113, 135, 0.2);
}

/* -------------------------------------------------------------------------
   7. FORM ELEMENTS
---------------------------------------------------------------------------- */
.input,
.textarea {
  font-family: var(--font-body);
  border-radius: var(--border-radius-soft);
  border: 1px solid #ccc; /* Lighter border */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: var(--transition-fast);
  padding: 0.75em 1em; /* Consistent padding */
}
.input:focus,
.textarea:focus,
.input.is-focused,
.textarea.is-focused,
.input:active,
.textarea:active,
.input.is-active,
.textarea.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.125em rgba(7, 113, 135, 0.25),
    inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
.label {
  color: var(--color-accent);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   8. SPECIFIC SECTION STYLING
---------------------------------------------------------------------------- */

/* Vision Section */
#vision .image img {
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-medium);
}

/* Innovation Section - Stat Widgets */
.stat-widget {
  background-color: rgba(
    250,
    240,
    230,
    0.9
  ); /* --color-background-light with alpha */
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius-medium);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.stat-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.stat-widget .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-widget .stat-label {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Success Stories - Media Object */
#success-stories .media-left .image img {
  border-radius: var(--border-radius-round); /* Circular images */
  object-fit: cover;
  border: 3px solid var(--color-secondary);
}
#success-stories .card .content small {
  display: block;
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--color-text-medium);
}

/* Partners Section */
#partners .image img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(80%) opacity(0.7);
}
#partners .image img:hover {
  transform: scale(1.1);
  filter: grayscale(0%) opacity(1);
}

/* Press Section - Quotes */
#press .box {
  background-color: var(--color-background-medium);
  border-radius: var(--border-radius-medium);
  border-left: 5px solid var(--color-primary);
}
#press .box h4.title {
  color: var(--color-primary);
}
#press .box h4.title small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-medium);
  font-weight: normal;
}
#press .box p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text-dark);
}

/* -------------------------------------------------------------------------
   9. FOOTER
---------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-on-dark);
  padding: 4rem 1.5rem 2rem; /* Adjusted padding */
}
.footer .footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  display: block;
}
.footer .title {
  /* Titles in footer columns */
  color: var(--color-text-light) !important;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer p,
.footer li {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.footer a {
  color: var(--color-secondary);
  font-weight: 600;
}
.footer a:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}
.footer ul {
  list-style: none;
  padding-left: 0;
}
.footer .content.has-text-centered p {
  /* Copyright text */
  color: var(--color-text-on-dark);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Styling for text-based social media links in footer */
.footer .column ul li a[target="_blank"] {
  /* Assuming social links open in new tab */
  display: inline-block;
  padding: 0.25rem 0; /* Add some clickable area */
}
.footer .column ul li a[target="_blank"]:hover {
  /* Could add a subtle background or icon-like effect if desired, but sticking to text */
}

/* -------------------------------------------------------------------------
   10. PAGE-SPECIFIC STYLES
---------------------------------------------------------------------------- */

/* Styles for success.html */
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--color-background-light);
}
.success-page-container .success-icon {
  /* Placeholder for an icon */
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
.success-page-container h1 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.success-page-container p {
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Padding for content on privacy.html and terms.html to avoid overlap with fixed header */
.privacy-page-content,
.terms-page-content,
.about-page-content,
.contacts-page-content {
  padding-top: calc(
    var(--header-height) + 2rem
  ); /* Header height + some margin */
  padding-bottom: 2rem;
}
.privacy-page-content .content,
.terms-page-content .content,
.about-page-content .content,
.contacts-page-content .content {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-soft);
}
.privacy-page-content h1,
.terms-page-content h1,
.about-page-content h1,
.contacts-page-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   11. UTILITIES & MISC
---------------------------------------------------------------------------- */
.has-text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.biomorphic-blob-1 {
  position: fixed; /* Or absolute depending on desired effect */
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    var(--color-primary-light) 0%,
    transparent 70%
  );
  border-radius: 50% 60% 70% 40% / 50% 45% 55% 60%; /* Example biomorphic shape */
  opacity: 0.08;
  z-index: -1;
  filter: blur(40px);
  animation: blobMove 20s infinite alternate ease-in-out;
  top: 10%;
  left: 5%;
}

.biomorphic-blob-2 {
  position: fixed;
  width: 400px;
  height: 350px;
  background: radial-gradient(
    circle,
    var(--color-secondary) 0%,
    transparent 70%
  );
  border-radius: 60% 40% 50% 70% / 45% 50% 60% 55%;
  opacity: 0.1;
  z-index: -1;
  filter: blur(50px);
  animation: blobMoveReverse 25s infinite alternate ease-in-out;
  bottom: 5%;
  right: 10%;
}

@keyframes blobMove {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, -30px) scale(1.1) rotate(15deg);
  }
  100% {
    transform: translate(-20px, 40px) scale(0.9) rotate(-10deg);
  }
}

@keyframes blobMoveReverse {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-40px, 60px) scale(0.95) rotate(-20deg);
  }
  100% {
    transform: translate(30px, -20px) scale(1.05) rotate(5deg);
  }
}

/* Hide blobs on smaller screens if they become distracting */
@media screen and (max-width: 768px) {
  .biomorphic-blob-1,
  .biomorphic-blob-2 {
    display: none;
  }
}

/* Cookie Consent Popup (Basic styling, HTML has some inline) */
#cookieConsentPopup {
  /* Style is mostly in HTML, this is for any overrides or additions */
  font-family: var(--font-body);
}
#cookieConsentPopup a {
  color: var(--color-secondary) !important; /* Ensure visibility from HTML */
}
#cookieAcceptButton {
  background-color: var(--color-secondary) !important; /* from HTML */
  color: var(--color-accent) !important; /* from HTML */
  transition: var(--transition-fast);
}
#cookieAcceptButton:hover {
  background-color: var(--color-secondary-dark) !important; /* from HTML */
}

/* Ensure high contrast for all text */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
