@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&family=Open+Sans:wght@300;400;600;700&family=Poppins:wght@300;400;500;600;700&family=Lora:wght@400;500;600;700&family=Crimson+Text:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

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

/* Header */
.header {
    background-color: #000000;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 400;
    color: #ffffff;
}

.tagline {
    font-size: 0.65rem;
    color: #006039;
    letter-spacing: 3px;
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav a:hover {
    color: #006039;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

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

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

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

/* Hero Section */
.hero {
    color: #fff;
    padding: 0 20px;
    min-height: 25vh;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background,
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Mobile: avoid background-attachment fixed for performance and compatibility */
@media (max-width: 768px) {
    .hero-background,
    .hero-background-overlay {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: opacity, background-image;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}

.hero-background {
    background-image: url('image/power/openback1.png');
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-background-overlay {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background::after,
.hero-background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #ffffff;
}

.hero p {
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Hero Carousel Controls */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.hero-carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.hero-carousel-btn.prev { left: 20px; }
.hero-carousel-btn.next { right: 20px; }

/* Hero Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-indicator.active {
    background-color: #ffffff;
}

/* Filters */
.filters {
    background-color: #f8f8f8;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-and-sort {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 0.9rem 1.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 0;
    width: 320px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    letter-spacing: 1px;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: #006039;
    box-shadow: 0 0 0 1px #006039;
}

.filter-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.9rem 2rem;
    border: 1px solid #333333;
    background-color: transparent;
    color: #1a1a1a;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.filter-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.filter-btn.active {
    background-color: #006039;
    color: #ffffff;
    border-color: #006039;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 2px;
}

/* On Sale Section */
.on-sale-section {
    padding: 5rem 0 3rem 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-bottom: 1px solid #e8e8e8;
}

.on-sale-section .section-title {
    color: #d4af37;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--sale-color, #ff6b6b);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.sold-badge {
    /* This class now only overrides the background color. */
    /* It inherits size, position, and font styles from .sale-badge. */
    background: var(--sold-color, #6ba4ff) !important;
}


.btn-favorite {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #999;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20;
    opacity: 1 !important;
}

.btn-favorite:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #ff6b6b;
    transform: scale(1.1);
}

.btn-favorite.active {
    background-color: rgba(255, 255, 255, 1);
    color: #ff6b6b;
}

.btn-favorite i {
    pointer-events: none;
}

.btn-view-all-sales {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #d4af37 0%, #c9a336 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-view-all-sales:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a336 0%, #b89330 100%);
}


/* Watch Grid */
.watches {
    padding: 3rem 0;
    background-color: #ffffff;
}

/* On the news page, the filter section is separate, so remove top padding from the watches section */
.news-page .watches {
    padding: 0;
}

.favorites-section {
    background-color: #f9f9f9;
    border-top: 1px solid #e8e8e8;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
}

.watch-card {
    background-color: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.5s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.watch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.watch-image {
    width: 100%;
    height: 272px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.watch-image::before {
    content: '⌚';
    font-size: 6rem;
    opacity: 0.15;
    color: #006039;
}

/* Carousel Styles */
.watch-carousel {
    width: 100%;
    height: 255px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}


.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.7));
    color: #fff;
    border: 2px solid var(--carousel-control-color, rgba(26, 26, 26, 0.7));
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--carousel-control-color, rgba(26, 26, 26, 0.9));
    border-color: var(--carousel-control-color, rgba(26, 26, 26, 0.9));
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicators .indicator.active {
    background-color: var(--carousel-control-color, #d4af37);
}

.carousel-indicators .indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.watch-info {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.watch-brand {
    color: #006039;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.watch-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.watch-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-weight: 300;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 0 0 auto;
}

.watch-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.watch-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.watch-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.watch-year {
    color: #999999;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-consultar {
    background-color: var(--carousel-control-color, #25D366);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
}

.btn-consultar i {
    color: white;
}

.btn-consultar:hover {
    opacity: 0.8;
}

.btn-share {
    background-color: var(--carousel-control-color, #006039);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.btn-share i {
    color: white;
}

.btn-share:hover {
    opacity: 0.8;
}

.btn-email {
    background-color: var(--carousel-control-color, #007bff);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.btn-email i {
    color: white;
}

.btn-email:hover {
    opacity: 0.8;
}

.watch-card.hidden {
    display: none;
}

/* About Section */
.about {
    background-color: #f8f8f8;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.about p {
    max-width: 750px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 2;
    color: #555555;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.about p:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    font-weight: 400;
}

.footer-section h4 {
    color: var(--accent-color, #006039);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #808080;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .filter-bar {
        gap: 1.5rem;
    }

    .search-box input {
        width: 280px;
    }

    .filter-btn {
        width: 140px;
    }
}

/* Mobile Styles */
/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #000000;
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }

    .nav.active {
        right: 0;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav li {
        border-bottom: 1px solid #333;
    }

    .nav a {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 0.9rem;
    }

    .nav a:hover {
        background-color: #1a1a1a;
    }

    .hero {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero p {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .search-box input {
        width: 100%;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
        min-width: 120px;
        max-width: 150px;
        flex: 1;
        font-size: 0.7rem;
        padding: 0.8rem 1rem;
        letter-spacing: 1px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .watch-description {
        font-size: 1.3rem;
    }

    .watch-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about h2 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .about p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about p:last-child {
        margin-bottom: 0;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation-name: animatemodal;
    animation-duration: 0.4s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes animatemodal {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-button:hover,
.close-button:focus {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.watch-modal-carousel {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.watch-modal-carousel .carousel-container {
    width: 100%;
    height: 100%;
}

.watch-modal-carousel .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed to contain for full image visibility */
}

.watch-modal-carousel .carousel-btn {
    background-color: var(--carousel-control-color, rgba(0,0,0,0.5));
    border: 2px solid var(--carousel-control-color, rgba(0,0,0,0.5));
    border-radius: 50%;
}

.watch-modal-carousel .carousel-btn:hover {
    background-color: var(--carousel-control-color, rgba(0,0,0,0.8));
    border-color: var(--carousel-control-color, rgba(0,0,0,0.8));
}

.watch-modal-carousel .carousel-indicators {
    bottom: 10px;
}

.watch-modal-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.watch-modal-info h3 {
    font-size: 1.5rem;
    color: #006039;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.watch-modal-info h2 {
    font-size: 3.125rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.watch-modal-info p {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.watch-modal-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: auto; /* Pushes details to the bottom */
}

.watch-modal-details span {
    font-size: 1.25rem;
    color: #333;
}

.watch-modal-details span:first-child {
    font-weight: 600;
    font-size: 1.75rem;
    color: #1a1a1a;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-body {
        flex-direction: column;
    }

    .watch-modal-carousel {
        height: 300px;
    }

    .watch-modal-info h2 {
        font-size: 2.5rem;
    }
}

/* About Page Content Styling */
.about-us-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.about-us-content h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
    letter-spacing: 1px;
}

.about-us-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 400;
}

.about-us-content p:last-child {
    margin-bottom: 0;
}

/* Service Title Styling */
.about-us-content .service-title {
    font-size: 1.3rem;
    color: #000000;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-us-content .service-title:first-of-type {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .about-us-content {
        padding: 1.5rem 0;
    }
    
    .about-us-content h2 {
        font-size: 2rem;
    }
    
    .about-us-content p {
        font-size: 1.15rem;
        text-align: left;
    }
    
    .about-us-content .service-title {
        font-size: 1.15rem;
        margin-top: 1.5rem;
    }
}

/* Footer email link should match surrounding text appearance */
#footer-email a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}
#footer-email a:hover,
#footer-email a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.search-and-sort #sortButton {
    padding: 0.65rem;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.sort-btn {
    padding: 0.65rem;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.2rem;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sort-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.sort-btn i {
    /* Ensure Font Awesome font and correct weight are used for solid icons */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Required for solid icons in FA6 */
}

@media (max-width: 768px) {
    .search-and-sort {
        width: 100%;
    }

    .search-box {
        flex-grow: 1;
    }

    .sort-btn {
        flex-shrink: 0;
    }
}