/* ------------------- */
/* RESET & NORMALIZE   */
/* ------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  font-weight: 700;
  color: var(--clr-headings);
}

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

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

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

/* ------------------- */
/* CUSTOM PROPERTIES   */
/* ------------------- */
:root {
  --clr-primary: #0a2342; /* Deep Blue */
  --clr-secondary: #2ca58d; /* Muted Teal */
  --clr-accent: #d9a443; /* Warm Gold */
  --clr-bg: #f8f9fa; /* Off-White */
  --clr-bg-dark: #1e2022;
  --clr-card-bg: #ffffff;
  --clr-text: #495057;
  --clr-headings: #0a2342;
  --clr-white: #ffffff;
  --clr-border: #e9ecef;

  --font-primary: 'Merriweather', serif;
  --font-secondary: 'Lato', sans-serif;

  --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
  --fs-h3: clamp(1.5rem, 3vw + 1rem, 2.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --space-unit: 1rem;
  --space-xs: calc(0.5 * var(--space-unit));
  --space-s: var(--space-unit);
  --space-m: calc(1.5 * var(--space-unit));
  --space-l: calc(2.5 * var(--space-unit));
  --space-xl: calc(4 * var(--space-unit));
  --space-xxl: calc(6 * var(--space-unit));

  --border-radius: 8px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 300ms ease-in-out;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&display=swap');

/* ------------------- */
/* UTILITY CLASSES     */
/* ------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xxl);
}

.section-dark {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
}

.section-dark h2, .section-dark h3 {
  color: var(--clr-white);
}

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

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

.grid {
  display: grid;
  gap: var(--space-l);
}

.btn {
  display: inline-block;
  padding: 0.75em 1.75em;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--clr-accent);
}

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

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

/* ------------------- */
/* HEADER & NAVIGATION */
/* ------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding-block: var(--space-s);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  font-family: var(--font-primary);
}
.logo:hover {
  color: var(--clr-accent);
}

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

.nav-links_item a {
  font-weight: 700;
  color: var(--clr-headings);
  padding-bottom: var(--space-xs);
  position: relative;
}

.nav-links_item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width var(--transition-speed);
}

.nav-links_item a:hover::after,
.nav-links_item a.active::after {
  width: 100%;
}

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

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--clr-primary);
  position: relative;
  transition: all 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--clr-primary);
  transition: all 0.2s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}


/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  text-align: center;
  padding: var(--space-xl);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 66, 0.7); /* Dark blue overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: var(--fs-h1);
  color: var(--clr-white);
  margin-bottom: var(--space-s);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-l);
  opacity: 0.9;
}

.simple-hero {
    min-height: 40vh;
    background-color: var(--clr-primary);
    background-blend-mode: multiply;
}

/* ------------------- */
/* FEATURES SECTION    */
/* ------------------- */
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-intro {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-intro h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-m);
}

.feature-card {
  background-color: var(--clr-card-bg);
  padding: var(--space-l);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.feature-card svg {
    width: 50px;
    height: 50px;
    margin-inline: auto;
    margin-bottom: var(--space-m);
    color: var(--clr-accent);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-s);
}

/* ------------------- */
/* ABOUT/STORY SECTION */
/* ------------------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
}

.about-content img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-text h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-m);
}

.about-text p {
  margin-bottom: var(--space-m);
}

/* ------------------- */
/* ARTICLES/SERVICES   */
/* ------------------- */
.article-card {
  background-color: var(--clr-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card-content {
  padding: var(--space-l);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-s);
}

.article-card p {
  margin-bottom: var(--space-m);
  flex-grow: 1;
}

.article-card-meta {
    font-size: var(--fs-small);
    color: var(--clr-text);
    opacity: 0.8;
}

.article-card .btn {
    margin-top: auto;
}

/* ------------------- */
/* TESTIMONIALS        */
/* ------------------- */
.testimonial-card {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  text-align: center;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: var(--space-l);
  position: relative;
  padding-inline: var(--space-l);
}

.testimonial-quote::before, .testimonial-quote::after {
  content: '“';
  font-size: 4rem;
  font-family: var(--font-primary);
  color: var(--clr-accent);
  opacity: 0.5;
  position: absolute;
  line-height: 1;
}
.testimonial-quote::before {
  top: -0.2em;
  left: 0;
}
.testimonial-quote::after {
  content: '”';
  bottom: -0.5em;
  right: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-accent);
}

.author-info strong {
  display: block;
}

.author-info span {
  font-size: var(--fs-small);
  opacity: 0.8;
}

/* ------------------- */
/* STATS SECTION       */
/* ------------------- */
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}

.stat-item .number {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.stat-item .label {
  font-size: 1.1rem;
  margin-top: var(--space-xs);
}


/* ------------------- */
/* FAQ SECTION         */
/* ------------------- */
.faq-container {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-item summary {
  padding: var(--space-m) 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: var(--space-m);
}

/* ------------------- */
/* CTA SECTION         */
/* ------------------- */
.cta-section {
  background: linear-gradient(45deg, var(--clr-primary), var(--clr-secondary));
  padding: var(--space-xxl) var(--space-l);
  color: var(--clr-white);
  text-align: center;
  border-radius: var(--border-radius);
  margin-inline: auto; /* To be applied inside .container */
  max-width: 1200px;
}

.cta-section h2 {
  font-size: var(--fs-h2);
  color: var(--clr-white);
  margin-bottom: var(--space-s);
}

.cta-section p {
  margin-bottom: var(--space-l);
  opacity: 0.9;
}

/* ------------------- */
/* PARTNERS SECTION    */
/* ------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-l);
  align-items: center;
}

.partner-logo {
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--font-primary);
  color: var(--clr-text);
  opacity: 0.6;
  transition: opacity var(--transition-speed);
}
.partner-logo:hover {
    opacity: 1;
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.main-footer {
  background-color: var(--clr-primary);
  color: var(--clr-bg);
  padding-block: var(--space-xl);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-col h4 {
  color: var(--clr-white);
  margin-bottom: var(--space-m);
  font-size: 1.1rem;
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: var(--space-m);
}

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

.footer-links a {
  color: var(--clr-bg);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--clr-accent);
}

.subscribe-form {
  display: flex;
}

.subscribe-form input {
  width: 100%;
  padding: 0.75em;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--clr-white);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.subscribe-form button {
  padding: 0.75em 1em;
  border: none;
  background-color: var(--clr-accent);
  color: var(--clr-primary);
  cursor: pointer;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-l);
  padding-top: var(--space-l);
  text-align: center;
  opacity: 0.7;
}

/* ------------------- */
/* CONTACT PAGE        */
/* ------------------- */
.contact-grid {
  grid-template-columns: 1fr 1.5fr;
  align-items: flex-start;
}
.contact-info h3 {
    margin-bottom: var(--space-m);
}
.contact-info p {
    margin-bottom: var(--space-l);
}
.contact-info strong {
    display: block;
    color: var(--clr-headings);
}

.contact-form .form-group {
    margin-bottom: var(--space-m);
}
.contact-form label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 700;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius);
    background-color: var(--clr-card-bg);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
}
.map-placeholder {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    text-align: center;
    position: relative;
}
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(10, 35, 66, 0.6);
    border-radius: var(--border-radius);
}
.map-placeholder-content {
    position: relative;
}

/* -------------------- */
/* PRIVACY/TERMS PAGES  */
/* -------------------- */
.legal-content h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-l);
  margin-bottom: var(--space-m);
}
.legal-content h3 {
  font-size: 1.4rem;
  margin-top: var(--space-m);
  margin-bottom: var(--space-s);
}
.legal-content p, .legal-content ul {
  margin-bottom: var(--space-m);
  max-width: 80ch;
}
.legal-content ul {
  list-style: disc;
  padding-left: var(--space-l);
}
.legal-hero {
    min-height: auto;
    padding-block: var(--space-xxl);
    background: var(--clr-primary);
}
.legal-hero h1 {
    color: var(--clr-white);
}

/* -------------------- */
/* COOKIE BANNER        */
/* -------------------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(20, 22, 24, 0.95);
  color: var(--clr-bg);
  padding: var(--space-m);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  flex-wrap: wrap;
}
#cookie-banner p {
  margin: 0;
  flex-grow: 1;
  text-align: center;
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: var(--space-s);
  flex-shrink: 0;
}
#cookie-accept-btn {
  background-color: var(--clr-accent);
  color: var(--clr-primary);
  border: none;
}
#cookie-decline-btn {
  background-color: transparent;
  color: var(--clr-white);
  border: 1px solid var(--clr-white);
}
#cookie-decline-btn:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}


/* ------------------- */
/* RESPONSIVE DESIGN   */
/* ------------------- */
@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
  .about-content.reverse {
    grid-template-columns: 1fr 1fr;
  }
  .about-content.reverse .about-image {
    order: 2;
  }
  #cookie-banner {
    justify-content: space-between;
  }
  #cookie-banner p {
    text-align: left;
  }
}

@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-white);
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .nav-links[data-visible="true"] {
    transform: translateX(0%);
  }
  
  .nav-links_item a {
    font-size: 1.5rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-open .hamburger {
    background-color: transparent;
  }
  .nav-open .hamburger::before {
    transform: rotate(45deg) translate(-5px, 6px);
  }
  .nav-open .hamburger::after {
    transform: rotate(-45deg) translate(-5px, -6px);
  }
  
  .contact-grid {
      grid-template-columns: 1fr;
  }
}