/**
 * Jamie's Beauty Studio - Main Stylesheet
 * A warm, elegant design with neutral pastels
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Cormorant:ital,wght@0,300;0,400;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

@import 'variables.css';
@import 'components.css';

/* ===== Reset & Base ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 200;
    line-height: var(--leading-normal);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-rose-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--color-charcoal);
    margin-block-end: 0.5em;
}

/* TypeKit font (ziy7hsd) is loaded - apply to headings, titles, and larger text */
/* Note: Update --font-heading in variables.css with the TypeKit font-family name */

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

/* Grid Typography - Center headings, justify body text */
.grid h1,
.grid h2,
.grid h3,
.grid h4,
.grid h5,
.grid h6,
.grid .section-title,
.grid .card-title {
    font-family: var(--font-grid-heading);
    text-align: center;
}

.grid p,
.grid .section-description,
.grid .card-text {
    font-family: var(--font-grid-body);
    text-align: justify;
}

/* Base typography only - no alignment or spacing */
p {
    /* Base typography properties only - alignment/spacing handled by components */
}

/* Scoped paragraph spacing for common content areas */
.section p,
.service-info-section p,
.page-header p {
    margin-bottom: var(--space-4);
}

/* Note: .about-preview-content p has its own margin-bottom rule below */

ul, ol {
    list-style: none;
}

/* ===== Header & Navigation ===== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-4) 0;
}

@media (min-width: 768px) {
    .nav {
        justify-content: flex-end;
    }
}

.nav-group {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
}

.nav-logo .logo-img-footer {
    height: 62px;
    width: auto;
}

.nav-menu {
    display: none;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .nav-logo .logo-img {
        height: 70px;
    }
    
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-charcoal);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-rose-dark);
    transition: width var(--transition-base);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-rose);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    margin-left: auto;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-cream);
    padding: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.nav-mobile.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-mobile .nav-link {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-mobile {
        display: none;
    }
}

/* ===== Hero Section ===== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-light) 50%, var(--color-cream) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, var(--color-rose-light) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

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

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-rose-dark);
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-4);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-light);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-title strong {
    font-weight: var(--font-semibold);
    color: var(--color-rose-dark);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-buttons .btn {
    background-color: var(--color-white);
    border-color: #F3D0D7;
    color: #4A4A4A;
}

.hero-buttons .btn:hover,
.hero-buttons .btn:active,
.hero-buttons .btn:focus {
    background-color: #E5C4C4;
    border-color: #E5C4C4;
    color: #4A4A4A;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    display: none;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
    .hero-image {
        display: block;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Services Section ===== */

.services-section {
    background-color: var(--color-white);
}

/* Services at a Glance section variant for home page */
.services-section[style*="background-color: #DEE8CE"] {
    background-color: #DEE8CE;
}

.services-section[style*="background-color: #DEE8CE"] .section-subtitle {
    color: var(--color-sage-dark);
}

.services-section[style*="background-color: #DEE8CE"] .section-title {
    color: var(--color-charcoal);
}

.services-section[style*="background-color: #DEE8CE"] .divider {
    background-color: #E7CCCC;
}

.service-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-cream-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

/* Service cards in Services at a Glance section */
.services-section[style*="background-color: #DEE8CE"] .service-card {
    background-color: #96A78D;
    border: 1px solid rgba(150, 167, 141, 0.5);
}

.services-section[style*="background-color: #DEE8CE"] .service-card h3 {
    color: var(--color-charcoal);
}

.services-section[style*="background-color: #DEE8CE"] .service-card p {
    color: var(--color-charcoal);
    opacity: 0.8;
}

.services-section[style*="background-color: #DEE8CE"] .service-card:hover {
    background-color: #879777;
    border-color: #E7CCCC;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-rose-light);
    border-radius: var(--radius-full);
    color: var(--color-rose-dark);
    font-size: var(--text-3xl);
}

/* Service icons in Services at a Glance section */
.services-section[style*="background-color: #DEE8CE"] .service-icon {
    background-color: #E7CCCC;
    color: var(--color-charcoal);
}

.services-section[style*="background-color: #DEE8CE"] .btn-outline {
    border-color: #E7CCCC;
    color: var(--color-charcoal);
}

.services-section[style*="background-color: #DEE8CE"] .btn-outline:hover {
    background-color: #E7CCCC;
    color: var(--color-charcoal);
}

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

.service-card p {
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* ===== Service Details Section Background ===== */

.service-info-section {
    background-image: url('../assets/images/newbackground.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: local;
}

.service-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
    pointer-events: none;
}

/* ===== About Preview Section ===== */

.about-preview {
    background-color: #F8F4ED;
}

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

.about-preview-image {
    position: relative;
}

.about-preview-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-preview-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-rose-dark);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-preview-content {
    padding: var(--space-8);
}

.about-preview-content .section-subtitle {
    text-align: left;
    color: var(--color-rose-dark);
}

.about-preview-content h2 {
    margin-bottom: var(--space-4);
}

.about-preview-content p {
    color: var(--color-gray);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    text-align: justify;
}

@media (min-width: 768px) {
    .about-preview {
        background-color: #F8F4ED;
    }
    
    .about-preview-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

/* ===== Gallery Preview ===== */

.gallery-preview {
    background-color: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
}

.gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* Make gallery items clickable on mobile */
@media (max-width: 767px) {
    .gallery-item {
        cursor: pointer;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 61, 61, 0.7), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-4);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
    
    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 1;
    }
}

/* ===== Gallery Lightbox (Mobile) ===== */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    touch-action: pan-y;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.lightbox-image-container {
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: var(--space-20);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.9);
    transition: transform var(--transition-base), opacity 0.3s ease;
    opacity: 1;
}

.gallery-lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-charcoal);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    z-index: 1001;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.lightbox-close:active {
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(-50%) scale(0.95);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: var(--text-3xl);
    font-weight: var(--font-light);
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    backdrop-filter: blur(10px);
}

.lightbox-nav:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(0.9);
}

.lightbox-prev {
    left: var(--space-4);
}

.lightbox-next {
    right: var(--space-4);
}

/* Hide lightbox on desktop */
@media (min-width: 768px) {
    .gallery-lightbox {
        display: none;
    }
}

/* ===== CTA Section ===== */

.cta-section {
    background-color: var(--color-taupe);
    text-align: center;
    padding: var(--space-16) 0;
}

.cta-section h2 {
    color: var(--color-rose-dark);
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: var(--color-charcoal);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

.cta-section .btn {
    background-color: var(--color-rose-light);
    color: var(--color-rose-dark);
    border-color: var(--color-rose);
}

.cta-section .btn:hover {
    background-color: var(--color-rose-dark);
    color: var(--color-rose-light);
    border-color: var(--color-rose);
}

/* ===== Footer ===== */

.footer {
    background-color: var(--color-cream-light);
    color: var(--color-charcoal);
    padding: var(--space-6) 0 var(--space-3);
    border-top: 1px solid var(--color-beige-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-brand {
    grid-column: 1 / -1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.footer-brand .nav-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2);
}

.footer-brand p {
    color: var(--color-gray);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: 0;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--space-3);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    color: var(--color-gray);
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray);
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

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

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-social a img {
    filter: brightness(0.6);
    transition: filter var(--transition-fast);
}

.footer-social a:hover img {
    filter: brightness(0.8);
}

.footer-column-separator {
    display: none;
}

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

.footer-copyright p {
    color: var(--color-gray);
    font-size: var(--text-xs);
    margin: 0;
    opacity: 0.7;
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-beige-dark);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: var(--text-xs);
    margin: 0;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 150px 150px 1px 280px;
        gap: var(--space-5);
        justify-content: center;
    }
    
    .footer-column {
        width: 150px;
    }
    
    .footer-brand {
        width: 280px;
        justify-self: center;
        align-items: center;
        text-align: center;
        grid-column: auto;
    }
    
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }
    
    .footer-column-separator {
        display: block;
        background-color: var(--color-beige-dark);
        height: 100%;
        width: 1px;
    }
}

/* ===== Page Header (for inner pages) ===== */

.page-header {
    padding: calc(80px + var(--space-8)) 0 var(--space-8);
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-cream) 100%);
    text-align: center;
    position: relative;
}

/* Page header with background image */
.page-header[style*="background-image"] {
    background-blend-mode: normal;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 220px;
}

/* Responsive background sizing and positioning for optimal fit */
/* Mobile: prioritize showing the center/main content area */
@media (max-width: 480px) {
    .page-header[style*="background-image"] {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: 180px;
    }
}

/* Tablet: balanced view of image */
@media (min-width: 481px) and (max-width: 768px) {
    .page-header[style*="background-image"] {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        min-height: 220px;
    }
}

/* Small desktop: maintain aspect ratio with fixed attachment */
@media (min-width: 769px) and (max-width: 1023px) {
    .page-header[style*="background-image"] {
        background-attachment: fixed;
        background-size: cover;
        background-position: center center;
        min-height: 250px;
    }
}

/* Large desktop: optimal viewing with parallax effect */
@media (min-width: 1024px) {
    .page-header[style*="background-image"] {
        background-attachment: fixed;
        background-size: cover;
        background-position: center center;
        min-height: 280px;
    }
}

/* Extra large screens: ensure full coverage */
@media (min-width: 1440px) {
    .page-header[style*="background-image"] {
        background-position: center center;
        background-size: cover;
        min-height: 300px;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 768px) {
    .page-header[style*="background-image"] {
        background-position: center center;
        background-size: cover;
    }
}

.page-header[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(246, 245, 242, 0.65) 0%, rgba(240, 235, 227, 0.60) 100%);
    z-index: 0;
    backdrop-filter: blur(0.5px);
}

.page-header[style*="background-image"] h1,
.page-header[style*="background-image"] p,
.page-header[style*="background-image"] .breadcrumb,
.page-header[style*="background-image"] .container {
    position: relative;
    z-index: 1;
}

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

.page-header p {
    color: var(--color-gray);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.page-header-subtitle {
    font-family: var(--font-heading);
    color: var(--color-gray);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Breadcrumb ===== */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.breadcrumb a {
    color: var(--color-gray);
}

.breadcrumb span {
    color: var(--color-gray-light);
}

/* ===== Mobile-First Responsive Improvements ===== */

/* Small screens (phones) */
@media (max-width: 480px) {
    /* Smaller hero text on phones */
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    /* Full-width buttons on small screens */
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Smaller section titles */
    .section-title {
        font-size: var(--text-2xl);
    }
    
    h1 {
        font-size: var(--text-3xl);
    }
    
    h2 {
        font-size: var(--text-2xl);
    }
    
    h3 {
        font-size: var(--text-xl);
    }
    
    /* Reduce section padding on mobile */
    .section {
        padding: var(--space-10) 0;
    }
    
    .page-header {
        padding: calc(70px + var(--space-10)) 0 var(--space-10);
    }
    
    /* CTA section adjustments */
    .cta-section {
        padding: var(--space-10) 0;
    }
    
    .cta-section h2 {
        font-size: var(--text-2xl);
        color: var(--color-rose-dark);
    }
    
    /* Service card adjustments */
    .service-card {
        padding: var(--space-5);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    /* Footer adjustments */
    .footer {
        padding: var(--space-10) 0 var(--space-6);
    }
    
    .footer-contact p {
        flex-wrap: wrap;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
    /* Reduce hero title size */
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    /* Stack hero content properly */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-12);
    }
    
    /* Better touch targets */
    .nav-link {
        padding: var(--space-2);
    }
    
    .nav-mobile .nav-link {
        padding: var(--space-4) 0;
        font-size: var(--text-lg);
        border-bottom: 1px solid var(--color-beige);
    }
    
    /* Ensure buttons are easily tappable */
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-5);
    }
    
    .btn-lg {
        padding: var(--space-4) var(--space-6);
    }
    
    /* Form inputs need to be 16px to prevent zoom on iOS */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }
    
    /* About preview stack on mobile */
    .about-preview {
        background: var(--color-beige);
    }
    
    .about-preview-content {
        padding: var(--space-6) 0;
    }
    
    .about-preview-image::before {
        display: none;
    }
}

/* Ensure images don't overflow */
@media (max-width: 640px) {
    .gallery-grid {
        gap: var(--space-3);
    }
    
    /* Make checkbox/radio options easier to tap */
    .checkbox-option,
    .radio-option {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .checkbox-option input,
    .radio-option input {
        width: 20px;
        height: 20px;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* ===== Qualifications Section ===== */

.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.qualification-card {
    background-color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-beige);
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-rose-dark);
}

.qualification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-rose-light);
    border-radius: var(--radius-full);
    font-size: var(--text-3xl);
    line-height: 1;
}

.qualification-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--space-2);
}

.qualification-detail {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-charcoal);
    margin-bottom: var(--space-1);
}

.qualification-subdetail {
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin: 0;
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .qualifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .qualifications-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Journey Section (How InJoy Beauty Began) ===== */

.journey-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vw, 28px);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.journey-text {
    min-width: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
}

.journey-image-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 400px;
    padding-top: 20px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.journey-image-base {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    object-fit: cover;
}

.journey-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(0%);
    width: 65%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    object-fit: cover;
}

/* Desktop/Tablet: 2-column layout */
@media (min-width: 769px) {
    .journey-content-grid {
        grid-template-columns: minmax(0, 700px) auto;
        gap: clamp(12px, 2vw, 28px);
    }
    
    .journey-text {
        margin: 0;
    }
    
    .journey-image-stack {
        justify-content: flex-end;
        min-width: 0;
        flex-shrink: 0;
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .journey-image-base {
        max-width: 480px;
    }
    
    .journey-image-overlay {
        left: 0;
        right: auto;
        top: 15%;
        transform: translateX(-20%) translateY(0%);
        width: 100%;
        max-width: 480px;
    }
}

/* Mobile: Stack vertically, reduce overlap */
@media (max-width: 768px) {
    .journey-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: 0 var(--space-4);
    }
    
    .journey-text {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .journey-image-stack {
        min-height: auto;
        padding-top: 0;
        padding-bottom: var(--space-4);
        justify-content: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .journey-image-base {
        max-width: 100%;
        width: 100%;
        margin-bottom: var(--space-4);
        margin-left: 0;
        margin-right: 0;
    }
    
    .journey-image-overlay {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: calc(-1 * var(--space-4));
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
        opacity: 0.9;
        z-index: 2;
    }
}

/* Extra small mobile: further reduce overlap */
@media (max-width: 480px) {
    .journey-content-grid {
        gap: var(--space-6);
        padding: 0 var(--space-3);
    }
    
    .journey-image-stack {
        padding-top: 0;
        padding-bottom: var(--space-3);
    }
    
    .journey-image-base {
        margin-bottom: var(--space-3);
    }
    
    .journey-image-overlay {
        margin-top: calc(-1 * var(--space-3));
        width: 100%;
        max-width: 100%;
    }
}

/* Smooth scroll for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
