/* ============================================
   KOZA HUKUK BÜROSU — Main Stylesheet
   Zero JS. Cutting-edge CSS.
   ============================================ */

/* --- CSS Layers for cascade control --- */
@layer reset, tokens, base, layout, components, utilities;

/* --- Design Tokens --- */
@layer tokens {
  :root {
    /* Colors */
    --navy: #0C0A3E;
    --navy-light: #1a1860;
    --maroon: #800000;
    --maroon-light: #a02020;
    --gold: #c9a84c;
    --gold-light: #e0c872;
    --cream: #f8f6f1;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Sizes */
    --max-width: 1200px;
    --header-height: 72px;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  }
}

/* --- Reset --- */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
  }

  body {
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  ul, ol {
    list-style: none;
  }

  button, input, textarea, select {
    font: inherit;
  }
}

/* --- Base --- */
@layer base {
  body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background-color: var(--white);
  }

  h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    text-wrap: balance;
  }

  h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
  h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
  h4 { font-size: 1.1rem; }

  p {
    text-wrap: pretty;
    max-width: 70ch;
  }

  ::selection {
    background: var(--gold);
    color: var(--navy);
  }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
}

/* --- Layout --- */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
  }

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

  /* Scroll-driven fade-in for sections */
  @supports (animation-timeline: view()) {
    .animate-on-scroll {
      animation: fade-slide-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    @keyframes fade-slide-up {
      from {
        opacity: 0;
        translate: 0 40px;
      }
      to {
        opacity: 1;
        translate: 0 0;
      }
    }
  }
}

/* --- Header --- */
@layer components {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--navy);
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
    transition: background var(--transition-base), box-shadow var(--transition-base);
  }

  /* Scroll-driven header shadow */
  @supports (animation-timeline: scroll()) {
    .site-header {
      animation: header-shadow linear both;
      animation-timeline: scroll();
      animation-range: 0px 100px;
    }

    @keyframes header-shadow {
      to {
        box-shadow: 0 2px 20px rgb(0 0 0 / 0.3);
        background: rgb(12 10 62 / 0.97);
        backdrop-filter: blur(12px);
      }
    }
  }

  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .site-header__logo img {
    height: 40px;
    width: auto;
  }

  .site-header__nav {
    display: flex;
    gap: var(--space-1);
  }

  .site-header__nav a {
    color: rgb(255 255 255 / 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    transition: color var(--transition-fast), background var(--transition-fast);
    letter-spacing: 0.01em;
  }

  .site-header__nav a:hover {
    color: var(--white);
    background: rgb(255 255 255 / 0.08);
  }

  /* Mobile nav with popover */
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
  }

  .mobile-menu-btn:hover {
    background: rgb(255 255 255 / 0.1);
  }

  .mobile-menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .mobile-nav {
    /* Popover styles */
    position: fixed;
    inset: 0;
    border: none;
    background: rgb(12 10 62 / 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-20) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;

    /* Popover open/close transitions */
    opacity: 0;
    transition: opacity var(--transition-base) allow-discrete, display var(--transition-base) allow-discrete;
  }

  .mobile-nav:popover-open {
    opacity: 1;
  }

  @starting-style {
    .mobile-nav:popover-open {
      opacity: 0;
    }
  }

  .mobile-nav a {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    padding: var(--space-3) var(--space-6);
    transition: color var(--transition-fast);
  }

  .mobile-nav a:hover {
    color: var(--gold);
  }

  .mobile-nav__close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: var(--space-2);
  }

  .mobile-nav__close svg {
    width: 28px;
    height: 28px;
  }

  @media (max-width: 768px) {
    .site-header__nav { display: none; }
    .mobile-menu-btn { display: block; }
  }
}

/* --- Hero --- */
@layer components {
  .hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
  }

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

  .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to bottom,
      rgb(12 10 62 / 0.75) 0%,
      rgb(12 10 62 / 0.55) 50%,
      rgb(12 10 62 / 0.85) 100%
    );
  }

  .hero__content {
    padding: var(--space-8);
  }

  .hero__subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-6);
  }

  .hero__title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
  }

  .hero__names {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgb(255 255 255 / 0.85);
    margin-bottom: var(--space-10);
  }

  .hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-4) var(--space-8);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
  }

  .hero__cta:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(201 168 76 / 0.35);
  }

  .hero__scroll-hint {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    translate: -50% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgb(255 255 255 / 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
  }

  .hero__scroll-hint svg {
    width: 20px;
    height: 20px;
  }

  @keyframes bounce {
    0%, 100% { translate: -50% 0; }
    50% { translate: -50% 8px; }
  }

  /* Parallax-like effect with scroll-driven animation */
  @supports (animation-timeline: scroll()) {
    .hero__bg img {
      animation: parallax linear both;
      animation-timeline: scroll();
      animation-range: 0vh 100vh;
    }

    @keyframes parallax {
      to { translate: 0 20%; scale: 1.05; }
    }
  }
}

/* --- Section Headers --- */
@layer components {
  .section-header {
    text-align: center;
    margin-bottom: var(--space-12);
  }

  .section-header__label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-3);
  }

  .section-header h2 {
    color: var(--navy);
    margin-bottom: var(--space-4);
  }

  .section-header__line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin-inline: auto;
    border-radius: 100px;
  }
}

/* --- About --- */
@layer components {
  .about {
    background: var(--white);
  }

  .about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  .about__text p {
    color: var(--gray-700);
    margin-bottom: var(--space-4);
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .about__founders {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
  }

  .founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    flex: 1;
  }

  .founder-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 3px solid var(--gold);
    box-shadow: var(--shadow-md);
  }

  .founder-card__placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px dashed var(--gray-300);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
  }

  .founder-card__info strong {
    display: block;
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 0.95rem;
  }

  .founder-card__info span {
    font-size: 0.8rem;
    color: var(--gray-500);
  }

  .about__image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }

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

  .about__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
    pointer-events: none;
  }

  @media (max-width: 768px) {
    .about__grid {
      grid-template-columns: 1fr;
      gap: var(--space-10);
    }

    .about__image {
      order: -1;
    }
  }
}

/* --- Services --- */
@layer components {
  .services {
    background: var(--gray-50);
  }

  .services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
  }

  .service-card {
    container-type: inline-size;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    flex-shrink: 0;
  }

  .service-card h3 {
    color: var(--navy);
    font-weight: 600;
  }

  .service-card p {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.65;
  }

  /* Container query: wider cards get horizontal layout */
  @container (min-width: 380px) {
    .service-card {
      flex-direction: row;
      align-items: flex-start;
      gap: var(--space-5);
    }
  }
}

/* --- Contact --- */
@layer components {
  .contact {
    background: var(--white);
  }

  .contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
  }

  .contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .contact-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .contact-item__label {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: var(--space-1);
  }

  .contact-item__value {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .contact-item__value a {
    color: var(--maroon);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
  }

  .contact-item__value a:hover {
    color: var(--maroon-light);
  }

  /* Contact form */
  .contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
  }

  .form-group input,
  .form-group textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--gray-50);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgb(201 168 76 / 0.15);
    background: var(--white);
  }

  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }

  .form-group__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    align-self: flex-start;
  }

  .form-submit:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
  }

  .form-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.5;
  }

  @media (max-width: 768px) {
    .contact__grid {
      grid-template-columns: 1fr;
    }

    .form-group__row {
      grid-template-columns: 1fr;
    }
  }
}

/* --- Map --- */
@layer components {
  .map {
    padding: 0;
  }

  .map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
  }
}

/* --- Blog Preview (on homepage) --- */
@layer components {
  .blog-preview {
    background: var(--gray-50);
  }

  .blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  .blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
  }

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

  .blog-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
  }

  .blog-card__date {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
  }

  .blog-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.35;
  }

  .blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
  }

  .blog-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: auto;
    transition: gap var(--transition-fast);
  }

  .blog-card__link:hover {
    gap: var(--space-2);
  }

  .blog-card__link svg {
    width: 14px;
    height: 14px;
  }

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

  .blog-preview__all a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--navy);
    border-radius: 100px;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .blog-preview__all a:hover {
    background: var(--navy);
    color: var(--white);
  }
}

/* --- Footer --- */
@layer components {
  .site-footer {
    background: var(--navy);
    color: rgb(255 255 255 / 0.7);
    padding-block: var(--space-16) var(--space-8);
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
  }

  .site-footer__brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgb(255 255 255 / 0.5);
    margin-top: var(--space-4);
    max-width: 30ch;
  }

  .site-footer__brand img {
    height: 36px;
    width: auto;
  }

  .site-footer h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-5);
  }

  .site-footer ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .site-footer ul a {
    font-size: 0.88rem;
    color: rgb(255 255 255 / 0.55);
    transition: color var(--transition-fast);
  }

  .site-footer ul a:hover {
    color: var(--gold);
  }

  .site-footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }

  .site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / 0.6);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .site-footer__social a:hover {
    background: var(--gold);
    color: var(--navy);
  }

  .site-footer__social svg {
    width: 16px;
    height: 16px;
  }

  .site-footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgb(255 255 255 / 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgb(255 255 255 / 0.35);
  }

  @media (max-width: 768px) {
    .site-footer__grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 480px) {
    .site-footer__grid {
      grid-template-columns: 1fr;
    }

    .site-footer__bottom {
      flex-direction: column;
      gap: var(--space-2);
      text-align: center;
    }
  }
}

/* --- Back to Top --- */
@layer components {
  .back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;

    /* Scroll-driven visibility */
    opacity: 0;
    pointer-events: none;
  }

  .back-to-top:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }

  @supports (animation-timeline: scroll()) {
    .back-to-top {
      animation: show-back-to-top linear both;
      animation-timeline: scroll();
      animation-range: 300px 301px;
      pointer-events: auto;
    }

    @keyframes show-back-to-top {
      from { opacity: 0; pointer-events: none; }
      to { opacity: 1; pointer-events: auto; }
    }
  }

  /* Fallback: always visible if scroll-timeline not supported */
  @supports not (animation-timeline: scroll()) {
    .back-to-top {
      opacity: 1;
      pointer-events: auto;
    }
  }
}

/* --- WhatsApp Button --- */
@layer components {
  .whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-8);
    z-index: 50;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgb(37 211 102 / 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgb(37 211 102 / 0.5);
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* --- Blog Page Styles --- */
@layer components {
  .blog-page {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-20);
    min-height: 80dvh;
  }

  .blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .blog-list-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-100);
  }

  .blog-list-item__date {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
  }

  .blog-list-item__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--navy);
    line-height: 1.35;
  }

  .blog-list-item__title a {
    transition: color var(--transition-fast);
  }

  .blog-list-item__title a:hover {
    color: var(--gold);
  }

  .blog-list-item__excerpt {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 65ch;
  }

  .blog-list-item__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: gap var(--transition-fast);
  }

  .blog-list-item__link:hover {
    gap: var(--space-2);
  }

  /* Blog post page */
  .blog-post {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-20);
    min-height: 80dvh;
  }

  .blog-post__header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-100);
  }

  .blog-post__date {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--space-4);
  }

  .blog-post__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy);
    margin-bottom: var(--space-4);
  }

  .blog-post__content {
    max-width: 700px;
    margin-inline: auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
  }

  .blog-post__content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
  }

  .blog-post__content h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
  }

  .blog-post__content p {
    margin-bottom: var(--space-5);
    max-width: none;
  }

  .blog-post__content ul,
  .blog-post__content ol {
    margin-bottom: var(--space-5);
    padding-left: var(--space-6);
  }

  .blog-post__content ul { list-style: disc; }
  .blog-post__content ol { list-style: decimal; }

  .blog-post__content li {
    margin-bottom: var(--space-2);
  }

  .blog-post__content blockquote {
    border-left: 3px solid var(--gold);
    padding: var(--space-4) var(--space-6);
    margin-block: var(--space-6);
    background: var(--cream);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--gray-700);
  }

  .blog-post__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gold);
    margin-bottom: var(--space-8);
    transition: gap var(--transition-fast);
  }

  .blog-post__back:hover {
    gap: var(--space-3);
  }
}

/* --- Utilities --- */
@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

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

  .mt-auto { margin-top: auto; }
}
