/*
Theme Name: SAMA Beauty
Theme URI: https://github.com/defnguyen/sama-beauty
Author: Def Nguyen
Author URI: https://github.com/defnguyen
Description: Modern, youthful spa WordPress theme based on Bootstrap 5 with elegant design
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sama-beauty
Tags: spa, beauty, salon, wellness, bootstrap, modern, clean
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 CSS Variables
2.0 Typography
3.0 General Styles
4.0 Header & Navigation
5.0 Topbar
6.0 Slider
7.0 Sections
8.0 Footer
9.0 Buttons
10.0 Forms
11.0 Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 CSS Variables
--------------------------------------------------------------*/
:root {
    --color-primary: #b37917;
    --color-secondary: #000000;
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-dark-gray: #6c757d;
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/*--------------------------------------------------------------
2.0 Typography
--------------------------------------------------------------*/
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-secondary);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/*--------------------------------------------------------------
3.0 General Styles
--------------------------------------------------------------*/
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-title p {
    color: var(--color-dark-gray);
    font-size: 1.1rem;
}

/*--------------------------------------------------------------
4.0 Header & Navigation
--------------------------------------------------------------*/
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary) !important;
    padding: 1rem 0;
}

.navbar-brand span {
    color: var(--color-primary);
}

.navbar-nav .nav-link {
    color: var(--color-secondary) !important;
    padding: 1.5rem 1rem !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

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

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

/*--------------------------------------------------------------
5.0 Topbar
--------------------------------------------------------------*/
.topbar {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.topbar a {
    color: var(--color-white);
    margin: 0 10px;
    transition: var(--transition);
}

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

.topbar i {
    margin-right: 5px;
    color: var(--color-primary);
}

/*--------------------------------------------------------------
6.0 Slider
--------------------------------------------------------------*/
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.2s backwards;
}

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

/*--------------------------------------------------------------
7.0 Sections
--------------------------------------------------------------*/
.about-section {
    background-color: var(--color-light-gray);
}

.about-content {
    padding-right: 30px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    border-color: var(--color-primary);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    margin-bottom: 1rem;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--color-primary);
}

.blog-card h2,
.blog-card h3,
.blog-card h4,
.blog-card h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

.blog-card .excerpt,
.blog-card p:not(.blog-meta) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 3.2em;
}

/*--------------------------------------------------------------
8.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-widget h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--color-white);
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-widget ul li i {
    min-width: 20px;
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-white);
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/*--------------------------------------------------------------
9.0 Buttons
--------------------------------------------------------------*/
.btn-primary {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 121, 23, 0.3);
}

.btn-outline-primary {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-white) !important;
}

/*--------------------------------------------------------------
10.0 Forms
--------------------------------------------------------------*/
.booking-form {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(179, 121, 23, 0.25);
}

/*--------------------------------------------------------------
11.0 Utilities
--------------------------------------------------------------*/
.text-primary {
    color: var(--color-primary) !important;
}

.bg-light {
    background-color: var(--color-light-gray) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}
