/* ===================================================================
   Minimal theme - Apple-inspired minimalism
   Version: 1.0.2
   Author: Reveloni
   For: CMS 6.0.0+
   
   Changelog:
     1.0.2 - .animate-on-scroll now reads var(--animation-offset, 30px)
             so admin "Animation intensity" slider controls scroll
             animation translation distance.
     1.0.1 - Removed default <li> bullet from nav (added nav ul reset).
             Fixed CTA and Price-tag text color: .content-section a rule
             was overriding their intentional Apple-style colors (black
             CTA, light-gray Price). Added :not() exclusions so regular
             content links stay primary-colored while button-like
             elements keep their design.
     1.0.0 - Initial release.
   =================================================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'cv11';
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Header === */

header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Backdrop blur on a pseudo-element, not on <header> (menu fix).
   Prevents the header from becoming a containing block for the mobile
   dropdown's position:fixed - which collapsed it to a strip and pushed
   it off-screen. Frosted look unchanged. */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 80px;
    width: auto;
}

.logo-container a {
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.logo-container a:hover {
    opacity: 0.75;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Hamburger menu wrapper (contains button + dropdown) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1d1d1f;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
    font-family: inherit;
    font-weight: 500;
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* Dropdown menu - appears below hamburger button when .active */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu ul {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
}

/* Submenus = nested lists with left padding (NOT popups) */
.dropdown-submenu {
    padding-left: 1rem;
    font-size: 0.9rem;
    list-style: none;
    margin: 0;
}

.dropdown-submenu a {
    padding: 0.45rem 1.25rem;
}

.dropdown-subsubmenu {
    padding-left: 2rem;
    font-size: 0.85rem;
    list-style: none;
    margin: 0;
}

.dropdown-subsubmenu a {
    padding: 0.4rem 1.25rem;
}

/* === Main === */

main {
    padding: 4rem 0;
    min-height: 60vh;
}

.hero {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #6e6e73;
}

.breadcrumbs a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.15s;
}

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

/* === Content section === */

.content-section {
    background: #ffffff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.content-section h1,
.content-section h2,
.content-section h3 {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content-section h1 { font-size: 2.5rem; line-height: 1.1; }
.content-section h2 { font-size: 1.875rem; line-height: 1.15; margin-top: 1.5rem; }
.content-section h3 { font-size: 1.4rem; margin-top: 1.25rem; }

.content-section p {
    margin-bottom: 1.15rem;
    color: #424245;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.15rem;
    color: #424245;
}

.content-section li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.content-section a:not(.cta-button):not(.price-tag):not(.btn) {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.content-section a:not(.cta-button):not(.price-tag):not(.btn):hover {
    border-bottom-color: var(--primary);
}

.content-section strong { font-weight: 600; color: #1d1d1f; }

.content-section img {
    max-width: 100%;
    border-radius: 14px;
    margin: 1rem 0;
}

.price-tag {
    display: inline-block;
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 0.5rem 1.25rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 1rem 0;
}

/* Buttons */
.btn,
.cta-button {
    display: inline-block;
    background: #1d1d1f;
    color: #ffffff;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn:hover,
.cta-button:hover {
    background: #000000;
    transform: scale(1.02);
}

.btn:active,
.cta-button:active {
    transform: scale(0.98);
}

/* === Page cards === */

.page-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.page-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.page-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
}

.page-card picture {
    display: block;
    width: 100%;
    height: 220px;
}

.page-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.page-card-placeholder {
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d2d2d7;
}

.page-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.page-card-excerpt {
    color: #6e6e73;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.5;
}

.page-card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: opacity 0.15s;
}

.page-card-link:hover {
    opacity: 0.7;
}

.page-card-link::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s;
}

.page-card:hover .page-card-link::after {
    transform: translateX(3px);
}

.onepage-sections,
.subpages-sections {
    padding: 1rem 0;
}

/* === Gallery === */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #f5f5f7;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Lightbox === */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 14px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* === Contact form === */

.contact-form {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 2rem;
    color: #1d1d1f;
}

.contact-form h2 {
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.875rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1d1d1f;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    color: #1d1d1f;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8e8e93;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

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

.success,
.error {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* === Testimonials === */

.testimonials-section { margin: 4rem 0 2rem; }

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.75rem;
    color: #1d1d1f;
    transition: all 0.25s ease;
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.testimonial-rating {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #424245;
    font-style: italic;
}

.testimonial-author {
    font-weight: 500;
    font-size: 0.9rem;
    color: #6e6e73;
    text-align: right;
}

.testimonial-author::before { content: '— '; }

/* === Footer === */

footer {
    background: #fafafa;
    color: #6e6e73;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #1d1d1f;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    color: #6e6e73;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.8;
    transition: color 0.15s;
}

.footer-section a:hover { color: #1d1d1f; }

.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 0.4rem; }

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    transition: all 0.15s;
    font-size: 0.95rem;
    color: #1d1d1f;
}

.social-links a:hover {
    background: #1d1d1f;
    color: #ffffff;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 0.8rem;
    color: #86868b;
}

.copyright p { margin: 0.25rem 0; }
.copyright a { color: #6e6e73; text-decoration: none; }
.copyright a:hover { color: #1d1d1f; }

/* === Dark mode toggle button === */

.dark-mode-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.15s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dark-mode-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===================================================================
   Dark mode — Apple-style inversion
   =================================================================== */

[data-theme="dark"] {
    background: #000000;
    color: #f5f5f7;
}

[data-theme="dark"] header {
    background: rgba(29, 29, 31, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .site-title,
[data-theme="dark"] .dropdown-menu a,
[data-theme="dark"] .hamburger-btn {
    color: #f5f5f7;
}

[data-theme="dark"] .dropdown-menu a:hover,
[data-theme="dark"] .dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .dropdown-menu {
    background: #1d1d1f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hamburger-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(180deg, #f5f5f7 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="dark"] .hero p,
[data-theme="dark"] .breadcrumbs,
[data-theme="dark"] .page-card-excerpt,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .testimonial-author,
[data-theme="dark"] .content-section p,
[data-theme="dark"] .content-section li {
    color: #a1a1a6;
}

[data-theme="dark"] .breadcrumbs a,
[data-theme="dark"] .content-section h1,
[data-theme="dark"] .content-section h2,
[data-theme="dark"] .content-section h3,
[data-theme="dark"] .content-section strong,
[data-theme="dark"] .page-card-title,
[data-theme="dark"] .testimonials-section h2 {
    color: #f5f5f7;
}

[data-theme="dark"] .content-section { background: transparent; }

[data-theme="dark"] .page-card,
[data-theme="dark"] .testimonial-card {
    background: #1d1d1f;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .page-card:hover,
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .page-card-placeholder {
    background: #2c2c2e;
    color: #48484a;
}

[data-theme="dark"] .gallery-item {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn,
[data-theme="dark"] .cta-button {
    background: #f5f5f7;
    color: #1d1d1f;
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] .cta-button:hover {
    background: #ffffff;
}

[data-theme="dark"] .price-tag {
    background: #2c2c2e;
    color: #f5f5f7;
}

[data-theme="dark"] .contact-form { background: #1d1d1f; }

[data-theme="dark"] .contact-form h2,
[data-theme="dark"] .form-group label { color: #f5f5f7; }

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: #6e6e73; }

[data-theme="dark"] footer {
    background: #0a0a0a;
    color: #86868b;
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .footer-section h3 { color: #f5f5f7; }
[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a { color: #a1a1a6; }
[data-theme="dark"] .footer-section a:hover { color: #f5f5f7; }

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}

[data-theme="dark"] .social-links a:hover {
    background: #f5f5f7;
    color: #1d1d1f;
}

[data-theme="dark"] .copyright {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #6e6e73;
}

[data-theme="dark"] .copyright a { color: #a1a1a6; }
[data-theme="dark"] .copyright a:hover { color: #f5f5f7; }

[data-theme="dark"] .dark-mode-toggle {
    background: #1d1d1f;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

/* === Animations on scroll === */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(var(--animation-offset, 30px));
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.75rem; }
    .content-section h1 { font-size: 2rem; }
    .content-section h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    /* Mobile menu fix (6.2.5): pin the dropdown to the screen and bind
       top AND bottom so its scroll area equals the visible viewport -
       reaches the last item in landscape. Paired with the body-scroll
       lock in script.js (prevents the page underneath from scrolling). */
    .dropdown-menu {
        position: fixed;
        top: 66px;
        bottom: 12px;
        left: auto;
        right: 8px;
        max-height: none;
        margin-top: 0;
        padding-bottom: 0.4rem;
        min-width: 220px;
    }

    .header-content { padding: 15px 0; }
    .logo-container img { height: 56px; }

    .hero { padding: 2rem 1rem 2.5rem; }
    .hero h1 { font-size: 2.25rem; line-height: 1.1; }
    .hero p { font-size: 1.1rem; }

    main { padding: 2rem 0; }

    .content-section { padding: 1.5rem 0; }
    .content-section h1 { font-size: 1.75rem; }
    .content-section h2 { font-size: 1.4rem; }

    .page-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .contact-form {
        padding: 1.75rem;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.875rem; }
    .hero p { font-size: 1rem; }

    .logo-container img { height: 48px; }
    .header-content { padding: 12px 0; }

    .dark-mode-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}


/* ===================================================================
/* === Print === */

@media print {
    body { background: #fff !important; color: #000 !important; }
    header, footer, .dark-mode-toggle,
    .hamburger-btn, .hamburger-menu { display: none !important; }
    .content-section,
    .contact-form,
    .testimonial-card,
    .page-card {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* === PLACEHOLDER COMPOSITIONS (v1.0.3) ===
   Ascetic: one rule, one dot, generous emptiness. A whisper, not a shout. */
.page-card-placeholder {
    position: relative;
    overflow: hidden;
}

.page-card-placeholder span { display: none; }

.page-card-placeholder::before,
.page-card-placeholder::after {
    content: '';
    position: absolute;
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    opacity: 1;
    width: auto;
    height: auto;
    inset: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Composition 1: horizontal hairline + primary dot */
.page-card-placeholder::before {
    width: 44%;
    height: 1px;
    top: 52%;
    left: 14%;
    background: currentColor;
    opacity: 0.3;
}

.page-card-placeholder::after {
    width: 12px;
    height: 12px;
    top: calc(52% - 5.5px);
    left: 64%;
    border-radius: 50%;
    background: var(--primary);
}

/* Composition 2: vertical hairline, dot below */
.page-card:nth-child(2n) .page-card-placeholder::before {
    width: 1px;
    height: 38%;
    top: 24%;
    left: 50%;
}

.page-card:nth-child(2n) .page-card-placeholder::after {
    top: 68%;
    left: calc(50% - 6px);
}

/* Composition 3: thin ring, dot inside, off-center */
.page-card:nth-child(3n) .page-card-placeholder::before {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(38% - 36px);
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    opacity: 0.35;
}

.page-card:nth-child(3n) .page-card-placeholder::after {
    top: calc(50% - 6px);
    left: calc(38% - 6px);
}

.page-card:hover .page-card-placeholder::before {
    transform: rotate(8deg);
}

.page-card:hover .page-card-placeholder::after {
    transform: translateX(14px);
}

.page-card:nth-child(2n):hover .page-card-placeholder::after {
    transform: translateY(-14px);
}

@media (prefers-reduced-motion: reduce) {
    .page-card-placeholder::before,
    .page-card-placeholder::after {
        transition: none !important;
    }
}

/* === KEYBOARD FOCUS (6.2.4 accessibility) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* === HERO BACKGROUND IMAGE (6.3.3) ===
   Minimal keeps it airy: a clean veil and large type, nothing else. Content centered, four overlay levels. Overrides the engine's
   universal fallback (loaded earlier) by cascade order. No image set ->
   this block stays inert. */
.hero--has-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
}

.hero--has-bg .hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}

.hero--has-bg .hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero--has-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,0.44);
}

.hero--has-bg h1 {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    max-width: 22ch;
}

.hero--overlay-none::after   { background: rgba(0,0,0,0.1); }
.hero--overlay-light::after  { background: rgba(0,0,0,0.26); }
.hero--overlay-medium::after { background: rgba(0,0,0,0.44); }
.hero--overlay-strong::after { background: rgba(0,0,0,0.62); }
