/*
Theme Name: Great Royal Construction
Theme URI: https://greatroyelconstruction.com/
Author: Great Royel Construction
Author URI: https://greatroyelconstruction.com/
Description: Professional theme for Great Royal Construction, specializing in stone and sand supply.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: great-royal-construction
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --gold: #d4af37;
    --pale-gold: #ebd893;
    --dark-gold: #aa8623;
    --bg-dark: #070708;
    --card-bg: #111112;
    --text-white: #f0f0f0;
}

body {
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

header .menu-toggle {
    display: none; /* Hide toggle on desktop by default */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.logo-white {
    color: #ffffff;
}

.logo-gold {
    color: var(--gold);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

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

.hero {
    background: radial-gradient(circle at center, rgba(30, 28, 22, 0.5) 0%, rgba(7, 7, 8, 1) 100%), url('https://images.unsplash.com/photo-1541888086425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80') center/cover;
    background-blend-mode: multiply;
    padding: 180px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

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

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--pale-gold);
    font-size: 72px;
    line-height: 1.25;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
}

.btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: #000;
    padding: 18px 50px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f5d15a 0%, var(--gold) 100%);
}

/* Products Section */
.products-section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-section h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--pale-gold);
    font-size: 46px;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.products-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 32px;
    margin: 80px 0 40px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    background: #151516;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.img-wrapper {
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--gold);
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-white);
    font-size: 26px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-info p {
    color: #999999;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-info button {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.product-card button:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    background: #080808;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--pale-gold);
    font-size: 46px;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.services-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    padding: 60px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.1);
}

.service-card i {
    font-size: 55px;
    color: var(--gold);
    margin-bottom: 30px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.service-card p {
    color: #999;
    font-size: 16px;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background: #0b0b0c;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--pale-gold);
    font-size: 46px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.about-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-icon {
    font-size: 50px;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-white);
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    color: #aaaaaa;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: var(--pale-gold);
    font-size: 46px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #111112;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-card i {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-card p {
    color: #999;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-card button {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
}

.contact-card button:hover {
    background: var(--gold);
    color: #000;
}

footer.main-footer {
    background: #000;
    color: #fff;
    padding: 80px 0 0;
    border-top: 2px solid var(--gold);
    margin-top: 80px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 60px;
}

.footer-col h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-col .contact-info li {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.footer-col .contact-info i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.footer-social-wrapper {
    margin-top: 35px;
}

.footer-social-wrapper h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.social-links-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
    background: #080808;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
    margin: 0;
    letter-spacing: 1px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
}

.whatsapp,
.call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.whatsapp {
    background: #25D366;
    color: white;
}

.call {
    background: var(--gold);
    color: black;
}

.whatsapp:hover,
.call:hover {
    transform: scale(1.15) translateY(-5px);
}

/* Add custom pulsing effect to Call button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.call {
    animation: pulse 2s infinite;
}

/* --- Quick Quote Modal --- */
.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quote-modal.active {
    display: flex;
    opacity: 1;
}

.quote-content {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid var(--gold);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.quote-modal.active .quote-content {
    transform: translateY(0);
}

.close-quote {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-quote:hover {
    color: var(--gold);
}

.quote-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--pale-gold);
    font-size: 32px;
    margin-bottom: 10px;
}

.quote-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
}

.call-btn {
    background: var(--gold) !important;
    color: black !important;
}

/* --- Product Detail Overlay --- */
.product-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-detail-overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-detail-overlay.active .overlay-content {
    transform: scale(1);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-overlay:hover {
    background: var(--gold);
    color: #000;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.detail-image {
    height: 500px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h2 {
    font-family: 'Playfair Display', serif;
    color: var(--pale-gold);
    font-size: 42px;
    margin-bottom: 25px;
}

.detail-description {
    color: #ccc;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.detail-actions {
    display: flex;
    gap: 20px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* --- Responsive Design --- */

/* Hide mobile menu toggle by default */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--gold);
    cursor: pointer;
}

/* Tablets and Mobile (under 992px) */
@media (max-width: 992px) {
    header {
        padding: 15px 30px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    nav.active {
        height: auto;
        padding-bottom: 30px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    nav a {
        padding: 20px 30px;
        width: 100%;
        box-sizing: border-box;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 1002;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    nav#main-nav.active {
        display: flex; /* Show vertical bar when active */
        opacity: 1;
    }

    nav#main-nav a {
        font-size: 22px;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        font-family: 'Playfair Display', serif;
        color: var(--pale-gold);
    }

    nav#main-nav a::after {
        display: none;
    }

    /* Fix Hero and sections for mobile centering */
    .hero {
        padding: 100px 20px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }
}

/* Phone Specific Fixes (under 768px) */
@media (max-width: 768px) {
    .logo {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .product-grid, .services-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col .contact-info li {
        justify-content: center;
    }

    .social-links-container {
        justify-content: center;
    }

    /* Scaling buttons for small screens */
    .whatsapp, .call {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-image {
        height: 300px;
    }

    .detail-info {
        padding: 30px 20px;
        text-align: center;
    }

    .detail-info h2 {
        font-size: 28px;
    }

    .detail-description {
        font-size: 15px;
    }

    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 15px 30px;
    }
}

/* Very Small Screen Fixes */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-image {
        height: 300px;
    }

    .detail-info {
        padding: 40px 30px;
    }
}