/* FluentLanguage.net Styles - v2.1 */
/* Modern, balanced layout with professional reviews section */

:root {
    /* Color Palette - Spanish-inspired warm neutrals */
    --color-bg: #FEFCF9;
    --color-bg-alt: #F7F3EE;
    --color-text: #2D2A26;
    --color-text-light: #6B6560;
    --color-accent: #C17F59;
    --color-accent-dark: #9E6A47;
    --color-accent-light: #E8D5C8;
    --color-sage: #8B9E82;
    --color-sage-light: #D4DBC9;
    --color-sand: #E8DFD3;
    --color-white: #FFFFFF;
    --color-border: #E5DFD9;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout - Design System */
    --container-max: 1200px;
    --container-padding: 24px;
    --section-padding: 80px;
    --section-padding-mobile: 56px;
    
    /* Spacing Scale (8px system) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 80px;
    --space-8: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Container - Consistent max-width + centering */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography Scale */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: var(--space-3);
}

h2 { 
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h3 { 
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

p { 
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-dark);
}

/* Header - Improved height, nav clarity, CTA button */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2) var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-4);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-1) var(--space-2);
    position: relative;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--color-accent);
    background: var(--color-bg-alt);
}

.nav-links a.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.nav-cta {
    background: var(--color-accent);
    color: var(--color-white) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--color-accent-dark) !important;
    color: var(--color-white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* Hero - Two-column grid with proper spacing */
.hero {
    padding: var(--space-6) 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    min-height: auto;
}

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

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3);
}

.hero h1 {
    margin-bottom: var(--space-3);
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

/* Trust signals row */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.trust-item .icon {
    font-size: 1rem;
}

/* Service chips - redesigned as pills */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-white);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.chip .icon {
    font-size: 1rem;
}

/* Hero visual - credibility cards stack */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-end;
}

.credibility-card {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 240px;
}

.credibility-card.primary {
    border-left: 4px solid var(--color-accent);
}

.credibility-card.secondary {
    border-left: 4px solid var(--color-sage);
}

.credibility-icon {
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.credibility-text {
    display: flex;
    flex-direction: column;
}

.credibility-text strong {
    font-size: 1.35rem;
    color: var(--color-accent);
    font-weight: 700;
}

.credibility-text span {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Buttons - Modern sizing and hover states */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* Services Section - Clean card grid */
.services {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.service-card {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    font-size: 2.25rem;
    margin-bottom: var(--space-3);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.service-card h3 {
    margin-bottom: var(--space-2);
    font-size: 1.15rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
    flex-grow: 1;
}

/* CTA Section */
/* Legal pages (Privacy Policy, Disclaimer) */
.legal-content {
    padding: var(--section-padding) 0;
}

.legal-body {
    max-width: 780px;
    margin: 0 auto;
}

.legal-body h2 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-accent);
    font-size: 1.35rem;
}

.legal-body h2:first-of-type {
    margin-top: var(--space-4);
}

.legal-body h3 {
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    font-size: 1.05rem;
    color: var(--color-text);
}

.legal-body p,
.legal-body ul {
    margin-bottom: var(--space-3);
    line-height: 1.75;
    color: var(--color-text-light);
}

.legal-body ul {
    padding-left: var(--space-5);
}

.legal-body ul li {
    margin-bottom: var(--space-2);
}

.legal-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-body a:hover {
    color: var(--color-accent-dark);
}

.legal-contact-block {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-3);
}

.legal-contact-block p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.8;
}

.cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-accent);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 500px;
    margin: 0 auto var(--space-5);
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-accent);
}

.cta-section .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    padding: var(--space-7) 0 var(--space-5);
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
}

/* Reviews Page - Clean Minimal Design */
.reviews-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

/* Reviews Summary - Centered Style */
.reviews-summary-centered {
    text-align: center;
    margin-bottom: var(--space-6);
}

.average-rating-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 5rem;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.rating-label {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.rating-stars {
    font-size: 1.5rem;
    color: #F59E0B;
    letter-spacing: 4px;
    margin-bottom: var(--space-2);
}

.reviews-count {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Reviews List */
.reviews-list {
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

/* Review Card - Clean Style */
.review-card {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-3);
}

.review-card:last-child {
    margin-bottom: 0;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Star Rating Display */
.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-3);
}

.review-rating .star {
    font-size: 1.1rem;
    line-height: 1;
}

.review-rating .star.filled {
    color: #F59E0B;
}

.review-rating .star.empty {
    color: #E5E7EB;
}

/* Review Content */
.review-text {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Write Review CTA */
.write-review-cta {
    text-align: center;
    margin-bottom: var(--space-6);
}

/* Review Form Section */
.leave-review-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.review-form-card {
    background: var(--color-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 640px;
    margin: 0 auto;
}

.review-form-card h2 {
    margin-bottom: var(--space-2);
    text-align: center;
}

.review-form-card > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-5);
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-2);
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    padding: var(--space-2) 0;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2.5rem;
    color: #E5E7EB;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    line-height: 1;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #F59E0B;
}

.star-rating-input label:hover {
    transform: scale(1.1);
}

/* Form Messages */
.form-message {
    display: none;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* Honeypot fields — hidden from users, visible to bots */
.hp-field,
.hp-trap {
    display: none;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
}

/* About Page */
.about-content {
    padding: var(--section-padding) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-6);
}

.about-main h2 {
    margin-top: var(--space-5);
}

.about-main h2:first-child {
    margin-top: 0;
}

.about-main h3 {
    margin-top: var(--space-4);
    color: var(--color-accent);
}

.lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* About page - Isela's portrait */
.about-photo-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(74, 78, 58, 0.16);
    aspect-ratio: 4 / 5;
    width: 100%;
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.credentials-card {
    background: var(--color-bg-alt);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.credentials-card h3 {
    margin-bottom: var(--space-3);
}

.credentials-list {
    list-style: none;
}

.credentials-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list .icon {
    font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-6);
}

.contact-form-card {
    background: var(--color-white);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
    margin-bottom: var(--space-2);
}

.contact-form-card > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-5);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-card {
    background: var(--color-bg-alt);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
}

.info-card h3 {
    margin-bottom: var(--space-3);
}

.direct-email a {
    font-size: 1.1rem;
    font-weight: 500;
}

.location {
    margin-top: var(--space-2);
    color: var(--color-text-light);
}

.services-list,
.availability-list {
    list-style: none;
}

.services-list li,
.availability-list li {
    padding: var(--space-1) 0;
    color: var(--color-text-light);
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-5) 0 var(--space-4);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--color-white);
    display: inline-block;
    margin-bottom: var(--space-3);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: var(--space-1) 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-bottom {
    padding-top: var(--space-4);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* Spell check language toggle */
.spell-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: var(--space-3);
    vertical-align: middle;
}

.lang-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--color-border, #d1d5db);
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.lang-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.footer-legal-links {
    margin-top: var(--space-2);
}

.footer-legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

/* Loading State */
.loading {
    text-align: center;
    padding: var(--space-5);
    color: var(--color-text-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-6);
    color: var(--color-text-light);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        gap: var(--space-5);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .credentials-card {
        flex: 1;
        min-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --section-padding: 56px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-visual {
        align-items: center;
        order: -1;
    }

    .credibility-card {
        min-width: auto;
        width: 100%;
        max-width: 320px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--space-3);
        box-shadow: var(--shadow-md);
        gap: var(--space-1);
    }
    
    .nav-links.active a {
        padding: var(--space-2) var(--space-3);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .reviews-summary-left {
        flex-direction: column;
    }
    
    .rating-distribution {
        width: 100%;
    }
    
    .rating-bar-track {
        flex: 1;
    }
}

/* ===== Redesigned Review Form ===== */

.review-form-card {
    background: var(--color-bg);
    padding: 48px 44px;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

/* Botanical SVG decoration - positioned top-right, flowing down */
.botanical-decoration {
    position: absolute;
    top: -30px;
    right: -60px;
    width: 320px;
    height: 380px;
    pointer-events: none;
    z-index: 1;
}

.botanical-svg {
    width: 100%;
    height: 100%;
}

/* Portrait circle - overlapping card, top-right */
.review-portrait {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 130px;
    height: 130px;
    z-index: 2;
}

.portrait-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--color-sage-light);
    padding: 4px;
    background: var(--color-bg);
    position: relative;
}

.portrait-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-sand) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    overflow: hidden;
}

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

.portrait-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    border: 2.5px solid var(--color-bg);
    z-index: 3;
}

/* Header - centered, no padding offset needed */
.review-form-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    padding-top: 10px;
}

.review-form-header h2 {
    font-size: clamp(1.85rem, 4.5vw, 2.5rem);
    margin-bottom: 14px;
    font-weight: 700;
}

.review-intro {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto 12px;
}

.review-thanks {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
}

/* Form content z-index */
.review-form {
    position: relative;
    z-index: 2;
}

/* Form Steps */
.form-step {
    margin-bottom: 28px;
}

.form-step-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Star Rating Bar */
.star-rating-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: var(--color-sand);
    padding: 18px 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
}

.rating-star {
    font-size: 2.75rem;
    color: #D5C8B4;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    line-height: 1;
    user-select: none;
}

.rating-star:hover {
    transform: scale(1.15);
    color: #A97840;
}

.rating-star.active {
    color: #A97840;
}

.rating-scale-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Textarea in review form - with decorative wavy lines */
.review-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    min-height: 170px;
    position: relative;
    z-index: 1;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Multiple wavy lines overlaid inside textarea area */
.textarea-group {
    position: relative;
}

.textarea-group::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 2px;
    right: 2px;
    bottom: 28px;
    pointer-events: none;
    z-index: 2;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8'%3E%3Cpath d='M0 4 Q15 1 30 4 T60 4 T90 4 T120 4 T150 4 T180 4 T210 4 T240 4 T270 4 T300 4 T330 4 T360 4 T390 4 T420 4 T450 4 T480 4 T510 4 T540 4 T570 4 T600 4' fill='none' stroke='%23D8D0C5' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8'%3E%3Cpath d='M0 4 Q15 1 30 4 T60 4 T90 4 T120 4 T150 4 T180 4 T210 4 T240 4 T270 4 T300 4 T330 4 T360 4 T390 4 T420 4 T450 4 T480 4 T510 4 T540 4 T570 4 T600 4' fill='none' stroke='%23D8D0C5' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8'%3E%3Cpath d='M0 4 Q15 1 30 4 T60 4 T90 4 T120 4 T150 4 T180 4 T210 4 T240 4 T270 4 T300 4 T330 4 T360 4 T390 4 T420 4 T450 4 T480 4 T510 4 T540 4 T570 4 T600 4' fill='none' stroke='%23D8D0C5' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8'%3E%3Cpath d='M0 4 Q15 1 30 4 T60 4 T90 4 T120 4 T150 4 T180 4 T210 4 T240 4 T270 4 T300 4 T330 4 T360 4 T390 4 T420 4 T450 4 T480 4 T510 4 T540 4 T570 4 T600 4' fill='none' stroke='%23D8D0C5' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='8'%3E%3Cpath d='M0 4 Q15 1 30 4 T60 4 T90 4 T120 4 T150 4 T180 4 T210 4 T240 4 T270 4 T300 4 T330 4 T360 4 T390 4 T420 4 T450 4 T480 4 T510 4 T540 4 T570 4 T600 4' fill='none' stroke='%23D8D0C5' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 10px 0, 0 20px, 5px 40px, 10px 60px, 0 80px;
    background-size: 600px 8px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* Submit Button */
.btn-submit-review {
    display: block;
    width: 100%;
    height: 56px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 28px;
}

.btn-submit-review:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit-review:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Review form responsive */
@media (max-width: 768px) {
    .review-form-card {
        padding: 32px 20px;
    }

    .botanical-decoration {
        top: -20px;
        right: -40px;
        width: 220px;
        height: 260px;
        opacity: 0.6;
    }

    .review-portrait {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 16px;
    }

    .portrait-ring {
        width: 90px;
        height: 90px;
    }

    .star-rating-bar {
        gap: 10px;
        padding: 14px 16px;
    }

    .rating-star {
        font-size: 2.25rem;
    }
}

/* Logo image styling */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}
.footer-brand .logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}
.service-icon img {
    width: 48px;
    height: 48px;
}
