/* ============================================
   BRIKORA HOMES LTD - Main Stylesheet
   Design: "Quiet Authority" - Navy + Gold
   ============================================ */

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

:root {
    --navy: #0B1F3A;
    --navy-light: #132d4f;
    --gold: #C9A84C;
    --gold-dark: #a8893d;
    --warm-white: #F8F6F3;
    --charcoal: #2D3748;
    --text-body: #4A5568;
    --text-light: #718096;
    --border: #E8E4E0;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

/* --- Utility --- */
.body-text {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.max-w-prose { max-width: 720px; }

.label-gold {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.gold-bar {
    width: 3px;
    height: 40px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.py-large { padding-top: 6rem; padding-bottom: 6rem; }
.py-medium { padding-top: 4rem; padding-bottom: 4rem; }

.section-white { background: var(--white); }
.section-alt { background: var(--warm-white); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-dark);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.link-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    transition: gap 0.2s ease;
}
.link-gold:hover {
    gap: 0.75rem;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}
.logo span {
    color: var(--gold);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.header-right {
    display: none;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}
.phone-link:hover {
    color: var(--white);
}

.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}
.mobile-menu.open {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.mobile-link {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
}
.mobile-link.active {
    color: var(--gold);
}
.mobile-link.phone {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.mobile-cta {
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .header-right { display: flex; }
    .mobile-toggle { display: none; }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11,31,58,0.88) 0%, rgba(11,31,58,0.6) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero h1 .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-text {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 4rem; }
}

/* --- Features --- */
.features {
    padding: 5rem 0;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(201,168,76,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.two-col.reverse .col-image {
    order: -1;
}

@media (min-width: 1024px) {
    .two-col {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .two-col.reverse .col-image {
        order: -1;
    }
}

.col-image {
    position: relative;
}
.col-image img {
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
}

.stat-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--navy);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
}

@media (min-width: 1024px) {
    .stat-badge { display: block; }
}

/* --- Check List --- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.5;
}
.check-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Checklist Cards (About page) --- */
.checklist-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    margin-top: 2rem;
}
.checklist-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.checklist-card svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.checklist-card span {
    color: var(--charcoal);
    line-height: 1.5;
}

/* --- Values Grid --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.value-card {
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold);
}
.value-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
}

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

/* --- Services Overview --- */
.services-overview {
    padding: 6rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-header p {
    color: var(--text-light);
    line-height: 1.7;
}

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

.service-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.service-card:hover {
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.service-bar {
    width: 3px;
    height: 32px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.25rem;
    transition: height 0.3s ease;
}
.service-card:hover .service-bar {
    height: 40px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

/* --- Process Box --- */
.process-box {
    background: var(--navy);
    padding: 2.5rem;
    border-radius: 4px;
}
.process-box h4 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.process-step {
    display: flex;
    gap: 1rem;
}
.step-num {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}
.process-step strong {
    display: block;
    color: var(--white);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.process-step p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    margin: 0;
}

/* --- CTA Sections --- */
.cta-section {
    position: relative;
    padding: 6rem 0;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,0.82);
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-dark {
    background: var(--navy);
    padding: 5rem 0;
}
.cta-dark-content {
    text-align: center;
}
.cta-dark-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.cta-dark-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* --- Page Header --- */
.page-header {
    background: var(--navy);
    padding: 5rem 0;
}
.page-header h1 {
    color: var(--white);
    margin-top: 0.75rem;
}
.page-header-desc {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-top: 1rem;
    max-width: 640px;
}

.page-header-image {
    position: relative;
    padding: 5rem 0;
}
.page-header-bg {
    position: absolute;
    inset: 0;
}
.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,0.85);
}
.page-header-content {
    position: relative;
    z-index: 2;
}
.page-header-content h1 {
    color: var(--white);
    margin-top: 0.75rem;
}
.page-header-subtitle {
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    font-weight: 400;
    margin-top: 1rem;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 2fr 3fr;
        gap: 4rem;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.contact-value {
    display: block;
    color: var(--charcoal);
    font-weight: 500;
}
a.contact-item:hover .contact-value {
    color: var(--gold);
}
.contact-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--warm-white);
    padding: 2.5rem;
    border-radius: 4px;
}
.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.15);
}
.form-group textarea {
    resize: none;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-submit {
    align-self: flex-start;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}
.form-success h4 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.form-success p {
    color: var(--text-light);
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.9);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-logo span {
    color: var(--gold);
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.footer-reg {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--gold);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-contact a,
.footer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}
.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
}
.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}
.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}
.footer-bottom a:hover {
    color: rgba(255,255,255,0.7);
}

@media (min-width: 640px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* --- Responsive Typography --- */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    .py-large { padding-top: 4rem; padding-bottom: 4rem; }
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
