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

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

:root {
    --red: #c41e3a;
    --red-hover: #d62e4a;
    --red-glow: rgba(196,30,58,0.25);
    --gold: #c9a84c;
    --text: #f0f0f0;
    --text-dim: #b0b0b0;
    --text-muted: #999;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: #0a0a0a;
    background-image:
        linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)),
        url('../images/Homepage 3.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fixed background darkens entire site — section-level overlays add extra depth where needed */

::selection { background: rgba(196,30,58,0.3); color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }

/* ===== IMAGES — GLOBAL ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HELPERS ===== */
.text-red { color: var(--red) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.bg-dark-custom { background: #111 !important; }

/* ===== BUTTONS ===== */
.btn-custom {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
}
.btn-red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
}
.btn-red:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--red-glow);
}
.btn-outline-custom {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline-custom:hover {
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-red {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red);
}
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--red);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
}
.site-header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.6rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}
.logo:hover { color: var(--text); }
.logo span { color: var(--red); }

.nav-link {
    font-size: 0.75rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim) !important;
    padding: 0.4rem 0.7rem !important;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text) !important; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.7rem;
    right: 0.7rem;
    height: 1px;
    background: var(--red);
}

/* ===== NAV DROPDOWN ===== */
.dropdown-menu {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.4rem;
    min-width: 170px;
}
.dropdown-item {
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.dropdown-item:hover, .dropdown-item.active {
    background: rgba(196,30,58,0.1);
    color: var(--text);
}
.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.35rem;
}

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.navbar-toggler {
    border: none !important;
    color: var(--text) !important;
    padding: 0.25rem;
}
.navbar-toggler:focus { box-shadow: none !important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240,240,240,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== PHONE CTA ===== */
.phone-cta {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    background: var(--red);
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--red-glow);
    transition: all 0.3s;
}
.phone-cta:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 6px 30px var(--red-glow); }
.phone-cta svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }

/* ===== HERO ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

/* Gradient overlay on homepage hero for text readability + bottom fade */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10,10,10,0.7) 0%, transparent 50%, transparent 100%),
        linear-gradient(0deg, rgba(10,10,10,1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    -webkit-text-stroke: 1px rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}
.hero-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--text-dim);
}
.stars { color: #ffc107; letter-spacing: 0.08em; font-size: 0.85rem; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 8rem 0 3rem;
    text-align: center;
}
.page-hero .label {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { max-width: 550px; margin: 0 auto; }

/* ===== GALLERY THUMBNAIL GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}
.gallery-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #111;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}
.gallery-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 1.5rem;
}
.gallery-thumb:hover .overlay { opacity: 1; }

/* ===== GALLERY MODAL ===== */
.gallery-modal .modal-content {
    background: transparent;
    border: none;
}
.gallery-modal .modal-body { padding: 0; }
.gallery-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    background: rgba(0,0,0,0.7) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.8;
}
.gallery-modal .btn-close:hover { opacity: 1; }
.gallery-modal .carousel-item img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.gallery-modal .carousel-control-prev,
.gallery-modal .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-modal:hover .carousel-control-prev,
.gallery-modal:hover .carousel-control-next { opacity: 1; }
.gallery-modal .carousel-control-prev-icon,
.gallery-modal .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 100%;
}
.gallery-modal .carousel-indicators { margin-bottom: 0.5rem; }
.gallery-modal .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
}
.gallery-modal .carousel-indicators button.active {
    background: var(--red);
    border-color: var(--red);
}

/* ===== REVIEW CARDS ===== */
.review-card {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 1.5rem;
}
.review-card blockquote {
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.review-card .reviewer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.review-card .reviewer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}
.review-card .reviewer-name { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.review-card .reviewer-role { font-size: 0.72rem; color: var(--text-muted); }

/* ===== CLIENT LOGOS ===== */
.client-logos {
    padding: .5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    background-color: #FFF !important;
}
.client-logos-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    background-color: #FFF !important;
}
.client-logo-img {
    flex-shrink: 0;
    height: 80px;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s;
    object-fit: contain;
}

@media (min-width: 768px) {
    .client-logo-img { height: 140px; }
}

@media (max-width: 480px) {
    .client-logos-track { gap: 1.5rem; }
    .client-logo-img { height: 50px; }
}

/* ===== CONTACT FORM ===== */
.contact-form-wrap {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 2rem;
}
.form-label-custom {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.form-control-dark {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 4px !important;
    color: var(--text) !important;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: none !important;
}
.form-control-dark:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(196,30,58,0.1) !important;
}
.form-group.is-invalid .form-control-dark {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(196,30,58,0.2) !important;
}
.form-group.is-invalid .form-label-custom {
    color: var(--red) !important;
}
.invalid-feedback {
    display: block;
    font-size: 0.75rem;
    color: var(--red);
    margin-top: 0.25rem;
}
.form-control-dark::placeholder { color: var(--text-muted); }
textarea.form-control-dark { min-height: 100px; resize: vertical; }
.form-select-dark {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 4px !important;
    color: var(--text) !important;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    appearance: auto;
}
.form-select-dark:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(196,30,58,0.1) !important;
}
.form-select-dark option { background: #1a1a1a; color: var(--text); }

.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-dim);
    font-size: 0.9rem;
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #000;
}
#royLogo {
    max-width: 180px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--red); }
.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-dim);
    font-size: 1rem;
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
/* Tablet (≤992px) */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; padding: 6rem 0 3rem; }
    .phone-cta { right: 0.75rem; bottom: 0.75rem; padding: 0.55rem 0.9rem; font-size: 0.72rem; }
    .page-hero { padding: 7rem 0 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
    .site-header.scrolled { padding: 0.5rem 0; }
    .gallery-thumb .overlay { opacity: 0.6; font-size: 1.2rem; }
    .navbar-collapse { background: #000; padding: 1rem; border-radius: 8px; margin-top: 0.5rem; }
    .nav-link { font-size: 0.85rem !important; padding: 0.6rem 0.7rem !important; }
}

/* Mobile (≤768px) */
@media (max-width: 767.98px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .hero-section { text-align: center; padding: 5rem 0 2.5rem; }
    .hero-badge { font-size: 0.7rem; margin-bottom: 1rem; }
    .hero-review-badge { font-size: 0.7rem; }
    .hero-buttons { justify-content: center; }
    .hero-buttons .btn-custom { font-size: 0.7rem; padding: 0.6rem 1.2rem; }
    .page-hero { padding: 5.5rem 0 2rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .logo { font-size: 1.3rem; }
    .site-header { padding: 0.7rem 0; }
    .nav-link { font-size: 0.7rem !important; padding: 0.35rem 0.5rem !important; }
    .client-logos { padding: .5rem 0; background-color: #FFF !important; }
    .client-logo-img { height: 120px; }
    .site-footer { padding: 2rem 0 5rem; }
    .site-footer .text-center-mobile img { display: block; margin: 0 auto; max-width: 100%; }
    .site-footer .text-center-mobile { text-align: center; }
    #copytext { justify-content: flex-end; }
    .footer-heading { font-size: 0.68rem; }
    .btn-custom { font-size: 0.68rem; padding: 0.6rem 1.3rem; }
    .reveal { transform: translateY(16px); }
    .contact-form-wrap { padding: 1.25rem; }
    .gallery-grid { gap: 0.5rem; }
    .gallery-thumb .overlay { opacity: 0.5; font-size: 1rem; }
    .gallery-modal .carousel-control-prev,
    .gallery-modal .carousel-control-next { opacity: 1; width: 15%; }
    .gallery-modal .carousel-control-prev-icon,
    .gallery-modal .carousel-control-next-icon { width: 2rem; height: 2rem; }
    .gallery-modal .btn-close { top: 0.5rem; right: 0.5rem; width: 2rem; height: 2rem; }
    .social-link { width: 34px; height: 34px; font-size: 0.85rem; }
    #royLogo {
        max-width: 100% !important;
    }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .hero-section { padding: 4.5rem 0 2rem; }
    .hero-buttons .btn-custom { font-size: 0.65rem; padding: 0.5rem 1rem; }
    .phone-cta { right: 2rem; bottom: 1rem; padding: 0.45rem 0.7rem; font-size: 0.65rem; }
    .phone-cta svg { width: 12px; height: 12px; }
    .page-hero { padding: 5rem 0 1.5rem; }
    .page-hero h1 { font-size: 1.4rem; }
    .page-hero .label { font-size: 1.3rem; }
    .contact-form-wrap { padding: 1rem; }
    .site-footer { padding: 1.5rem 0 0.75rem; }
    .gallery-grid { gap: 0.4rem; grid-template-columns: 1fr; }
    .client-logo-img { height: 100px; }
    .client-logos-track { gap: 1rem; background-color: #FFF !important; }
}
