/* ========================================
   BSAS (Pty) Ltd - Static Site Styles
   HTML5 / CSS3
   ======================================== */

/* --- VARIABLES --- */
:root {
    --dark-bg: #080F1E;
    --dark-surface: #101827;
    --dark-text: #F3F0EA;
    --dark-border: #273142;
    --light-bg: #FAFAFA;
    --light-surface: #FFFFFF;
    --light-text: #0A1128;
    --light-border: #E5E7EB;
    --gold: #D4AF37;
    --gold-hover: #C09E32;
    --cream: #F3F0EA;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

::selection {
    background: var(--gold);
    color: var(--dark-bg);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container { padding: 0 48px; }
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.5s ease;
}

header.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 15, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

@media (min-width: 768px) {
    .header-container { padding: 0 48px; }
}

.header-logo img {
    height: 48px;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 40px;
}

@media (min-width: 768px) {
    .desktop-nav { display: flex; }
}

.desktop-nav a {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(243, 240, 234, 0.7);
    transition: color 0.3s;
}

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

/* Mobile toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-toggle { display: none; }
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 15, 30, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.open {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu a {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(243, 240, 234, 0.7);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--gold);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BUTTONS --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold);
    color: var(--dark-bg);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: scale(1.02);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-text);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-nav {
    padding: 10px 24px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
}

/* --- GOLD LINE --- */
.gold-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 32px;
}

.gold-line.center {
    margin-left: auto;
    margin-right: auto;
}

/* --- GOLD SHIMMER --- */
.gold-shimmer {
    background: linear-gradient(90deg, #B8860B 0%, #D4AF37 50%, #B8860B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* --- SECTIONS --- */
.section {
    padding: 96px 0;
}

@media (min-width: 768px) {
    .section { padding: 128px 0; }
}

.section-light { background: var(--light-bg); color: var(--light-text); }
.section-white { background: var(--light-surface); color: var(--light-text); }
.section-cream { background: var(--cream); color: var(--light-text); }
.section-dark { background: var(--dark-bg); color: var(--dark-text); }
.section-dark-surface { background: var(--dark-surface); color: var(--dark-text); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .section-header h2 { font-size: 3rem; }
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,15,30,0.6) 0%, rgba(8,15,30,0.85) 60%, rgba(8,15,30,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    padding-top: 128px;
    padding-bottom: 96px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--dark-text);
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .hero h1 { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(243, 240, 234, 0.7);
    max-width: 560px;
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(to bottom, transparent, var(--light-bg));
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--light-text);
    margin-bottom: 32px;
    line-height: 1.15;
}

@media (min-width: 640px) {
    .about-text h2 { font-size: 3rem; }
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(10, 17, 40, 0.75);
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .about-text p { font-size: 1.125rem; }
}

.about-image {
    position: relative;
}

.image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-border {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    z-index: -1;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    border: 1px solid var(--light-border);
    border-radius: 12px;
    padding: 32px;
    background: white;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 16px;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(10, 17, 40, 0.65);
}

/* --- FEATURES / WHY US --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(10, 17, 40, 0.65);
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--dark-text);
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .contact-info h2 { font-size: 3rem; }
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(243, 240, 234, 0.7);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(243, 240, 234, 0.5);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    color: var(--dark-text);
}

/* --- CONTACT FORM --- */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.dark-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-text);
    font-family: 'Manrope', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}

.dark-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.dark-input::placeholder {
    color: rgba(243, 240, 234, 0.4);
}

.form-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-top: 8px;
}

.form-message.success { color: #34d399; }
.form-message.error { color: #f87171; }

/* --- FOOTER --- */
footer {
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark-bg);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-logo img {
    height: 32px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(243, 240, 234, 0.4);
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: rgba(243, 240, 234, 0.3);
}

.footer-made svg {
    margin: 0 4px;
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
