/*
Theme Name: Heshan Salon Theme
Theme URI: https://example.com/heshan-salon
Author: Heshan Salon
Author URI: https://example.com
Description: A luxury salon WordPress theme with full admin customization. All content, images, services, and gallery items can be managed through the WordPress admin panel.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heshan-salon
Tags: one-page, custom-logo, custom-menu, featured-images, theme-options

This theme is designed for Heshan Salon - Where Beauty Meets Tranquility
*/

/* ============================
   CSS Variables / Design System
   ============================ */
:root {
    /* Light Theme Colors */
    --background: hsl(60, 4%, 95%);
    --foreground: hsl(24, 9%, 10%);
    --card: hsl(60, 9%, 97%);
    --card-foreground: hsl(24, 9%, 10%);
    --popover: hsl(20, 5%, 90%);
    --popover-foreground: hsl(24, 9%, 10%);
    --primary: hsl(37, 92%, 50%);
    --primary-foreground: hsl(47, 100%, 96%);
    --secondary: hsl(24, 5%, 44%);
    --secondary-foreground: hsl(60, 9%, 97%);
    --muted: hsl(23, 5%, 82%);
    --muted-foreground: hsl(24, 9%, 10%);
    --accent: hsl(47, 100%, 96%);
    --accent-foreground: hsl(37, 92%, 50%);
    --destructive: hsl(0, 72%, 50%);
    --border: hsl(23, 5%, 82%);
    --input: hsl(23, 5%, 82%);
    --ring: hsl(37, 92%, 50%);
    --radius: 1rem;
    
    /* Fonts */
    --font-sans: 'Source Sans Pro', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Source Serif Pro', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ============================
   Typography
   ============================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

.font-serif {
    font-family: var(--font-serif);
}

/* ============================
   Layout
   ============================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================
   Header
   ============================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(243, 243, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media (min-width: 768px) {
    .header-inner {
        height: 80px;
    }
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .site-logo {
        font-size: 1.875rem;
    }
}

.site-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(29, 25, 22, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

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

/* Header Actions */
.header-actions {
    display: none;
}

@media (min-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.header-actions a {
    color: rgba(29, 25, 22, 0.7);
    transition: color 0.3s ease;
}

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

.header-actions svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

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

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

.mobile-navigation {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mobile-navigation.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-navigation {
        display: none !important;
    }
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(29, 25, 22, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: hsl(37, 92%, 45%);
    color: var(--primary-foreground);
}

.btn-outline {
    background-color: rgba(252, 250, 238, 0.1);
    border: 1px solid rgba(252, 250, 238, 0.3);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: rgba(252, 250, 238, 0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ============================
   Hero Section
   ============================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 25, 22, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-subtitle {
    color: rgba(252, 250, 238, 0.9);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.7s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.7s ease-out 0.15s both;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-tagline {
    color: rgba(252, 250, 238, 0.9);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto 1rem;
    font-weight: 300;
    animation: fadeSlideUp 0.7s ease-out 0.3s both;
}

@media (min-width: 768px) {
    .hero-tagline {
        font-size: 1.25rem;
    }
}

.hero-location {
    color: rgba(252, 250, 238, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.7s ease-out 0.45s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    animation: fadeSlideUp 0.7s ease-out 0.5s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator-inner {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(252, 250, 238, 0.5);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator-dot {
    width: 4px;
    height: 12px;
    background-color: rgba(252, 250, 238, 0.7);
    border-radius: 9999px;
    animation: pulse 2s infinite;
}

/* ============================
   Sections Common
   ============================ */
.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

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

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem;
}

.section-label {
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    color: var(--muted-foreground);
}

/* ============================
   About Section
   ============================ */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

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

.about-image-border {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(234, 168, 30, 0.3);
    border-radius: 0.5rem;
}

.about-image {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.about-content .section-label {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-value {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ============================
   Services Section
   ============================ */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background-color: var(--card);
    border: 1px solid rgba(211, 206, 200, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s ease;
}

.service-card:hover {
    border-color: rgba(234, 168, 30, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29, 25, 22, 0.8), rgba(29, 25, 22, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-offerings {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.service-card:hover .service-offerings {
    transform: translateY(0);
}

.service-offerings ul {
    list-style: none;
    color: rgba(252, 250, 238, 0.9);
    font-size: 0.875rem;
}

.service-offerings li {
    margin-bottom: 0.25rem;
}

.service-offerings li::before {
    content: "• ";
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Opening Hours Box */
.opening-hours-box {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--card);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.opening-hours-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.opening-hours-text {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.125rem;
}

.opening-hours-note {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* ============================
   Gallery Section
   ============================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gallery-item.span-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(234, 168, 30, 0);
    transition: background-color 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background-color: rgba(234, 168, 30, 0.2);
}

.gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-caption span {
    color: var(--accent);
    font-weight: 500;
    font-size: 1.125rem;
}

/* ============================
   Contact Section
   ============================ */
.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.contact-info-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(234, 168, 30, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-info-label {
    font-weight: 500;
    color: var(--foreground);
}

.contact-info-text {
    color: var(--muted-foreground);
}

/* Social Links */
.social-links {
    margin-top: 2.5rem;
}

.social-links-label {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.social-links-list {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background-color: rgba(234, 168, 30, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Map */
.contact-map {
    margin-top: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    background-color: var(--muted);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    text-align: center;
    color: var(--muted-foreground);
}

.contact-map-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
}

.contact-form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 168, 30, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
}

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

/* ============================
   Footer
   ============================ */
.site-footer {
    background-color: var(--foreground);
    color: rgba(243, 243, 240, 0.9);
}

.footer-inner {
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Footer Brand */
.footer-brand-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-brand-description {
    color: rgba(243, 243, 240, 0.7);
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(243, 243, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(243, 243, 240, 0.7);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Links */
.footer-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(243, 243, 240, 0.7);
    transition: color 0.3s ease;
}

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

/* Footer Contact */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(243, 243, 240, 0.7);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(243, 243, 240, 0.1);
    text-align: center;
    color: rgba(243, 243, 240, 0.5);
    font-size: 0.875rem;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================
   WordPress Specific
   ============================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
