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

:root {
    --primary: #0a0a0a;         /* Black background */
    --primary-light: #161616;   /* Slightly lighter for cards */
    --primary-dark: #000000;    /* Absolute black */
    --accent: #b99776;          /* The exact Gold/Beige of the logo */
    --accent-light: #d6ba9f;
    --text-main: #f4f4f4;       /* Main text, soft white */
    --text-muted: #a1a1a1;      /* Secondary text, muted grey */
    --text-light: #ffffff;
    --bg-main: #0a0a0a;         
    --bg-off: #161616;          
    --border-color: #2a2a2a;    
    --radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.7);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 36, 36, 0.4);
    color: #fff;
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 2rem;
    min-height: 80px;
}

.site-logo img {
    height: 72px;
    max-height: 72px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-menu > li > a:hover {
    color: var(--accent);
}

/* Dropdown */
.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-off);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background: var(--bg-off);
    color: var(--accent);
    padding-left: 2rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

/* Main Content Padding */
.site-main {
    margin-top: 80px; /* matches navbar min-height */
    min-height: calc(100vh - 300px);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem;
    background: var(--primary-dark);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}

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

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: center;
}

/* Cards */
.card {
    background: var(--bg-off);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.card-text {
    flex-grow: 1;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    border-top: 1px solid var(--accent);
    color: var(--text-muted);
    padding: 4rem 2rem 1rem;
}

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

.footer-widget h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.2);
}

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

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-off);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,0.8);
    border: 1px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.carousel-btn:hover {
    background: var(--accent);
    color: white;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* ===== Active Nav Link ===== */
.nav-menu > li > a.active {
    color: var(--accent) !important;
    border-bottom: 2px solid var(--accent);
    padding-bottom: calc(0.5rem - 2px);
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: var(--primary-dark);
    border-bottom: 1px solid var(--accent);
    padding: 3rem 2rem 2.5rem;
}
.page-hero .container { max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
    font-size: 3rem;
    color: var(--accent);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.page-hero p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

/* ===== Project Hero (with background image) ===== */
.project-hero {
    position: relative;
    padding: 8rem 2rem;
    background: var(--primary-dark);
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 0;
}
.project-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.project-hero h1 {
    font-size: 4rem;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .project-hero { padding: 6rem 2rem; min-height: 300px; }
    .project-hero h1 { font-size: 2.5rem; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.stat-card {
    background: var(--bg-off);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.stat-card i { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.stat-label  { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ===== Back to Top ===== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(185,151,118,0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover { background: var(--accent-light); transform: translateY(-3px); }

/* ===== Dropdown active ===== */
.dropdown-menu li a.active { color: var(--accent); padding-left: 2rem; }

/* ===== Alert / Flash messages ===== */
.alert { border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; }
.alert-success { background: rgba(185,151,118,0.15); border: 1px solid var(--accent); color: var(--accent); }
.alert-error   { background: rgba(200,50,50,0.15);   border: 1px solid #c83232;      color: #e07070; }

@media (max-width: 768px) {
    .page-hero h1 { font-size: 2rem; }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}
