/* ============================================
   Richard Haddad — Private Real Estate Broker
   Clean, Modern, Minimalistic
   ============================================ */

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

:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f2f2f2;
    --mid-gray: #999999;
    --dark-gray: #444444;
    --near-black: #1a1a1a;
    --black: #0a0a0a;
    --accent: #b8965a;
    --accent-light: #d4b87c;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--near-black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Section Shared --- */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 32px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--black);
    transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--black);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--mid-gray);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--black);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--mid-gray);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--black);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
    background: var(--black);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
    padding-top: 80px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 300;
    color: var(--dark-gray);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.9s forwards;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 150, 90, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--near-black);
    border: 1px solid var(--light-gray);
    padding: 15px 39px;
}

.btn-outline:hover {
    border-color: var(--near-black);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: fadeIn 1s 1.1s forwards;
}

.hero-meta-divider {
    width: 1px;
    height: 32px;
    background: var(--light-gray);
}

.hero-meta-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mid-gray);
    margin-bottom: 4px;
}

.hero-meta-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--near-black);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s 0.6s forwards;
}

.hero-image-wrap {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 8px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.hero-portrait {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 560px;
    object-position: center top;
}

.hero-image-accent {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    max-width: 460px;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 1;
    opacity: 0.3;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.hero-scroll span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mid-gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDown 2s infinite;
}

/* --- About --- */
.section-about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 20px !important;
    font-weight: 400;
    color: var(--near-black) !important;
    line-height: 1.6;
    margin-bottom: 28px !important;
}

.about-highlight {
    font-weight: 400;
    color: var(--near-black) !important;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin-top: 32px !important;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform var(--transition);
}

.about-image:hover .about-img {
    transform: scale(1.03);
}

/* --- Work --- */
.section-work {
    background: var(--off-white);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.work-card {
    background: var(--white);
    padding: 48px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.work-number {
    font-size: 48px;
    font-weight: 200;
    color: var(--light-gray);
    line-height: 1;
    display: block;
    margin-bottom: 24px;
    transition: color var(--transition);
}

.work-card:hover .work-number {
    color: var(--accent);
}

.work-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.work-card p {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.work-card-image {
    margin-top: 32px;
    overflow: hidden;
    height: 200px;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

/* --- Marquee --- */
.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    background: var(--black);
}

.marquee-track {
    display: flex;
    gap: 48px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.marquee-dot {
    color: var(--accent) !important;
}

/* --- Philosophy --- */
.section-philosophy {
    background: var(--white);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-image-wrap {
    position: sticky;
    top: 120px;
}

.slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    display: block;
    opacity: 1;
}

.philosophy-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
}

.slideshow-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.slide-btn {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-fast);
}

.slide-btn-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: width 0.3s ease;
}

.slide-btn.active .slide-btn-fill {
    width: 100%;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.philosophy-text p {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 24px;
}

.philosophy-verse {
    margin: 40px 0;
    padding: 32px;
    background: var(--off-white);
    border-left: 3px solid var(--accent);
    font-style: italic;
    font-size: 17px;
    color: var(--near-black);
    line-height: 1.8;
}

.philosophy-verse cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 16px;
}

/* --- Quote --- */
.section-quote {
    background: var(--black);
    padding: 100px 0;
}

.quote-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 40px;
}

.quote-text {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--white);
    line-height: 1.7;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.quote-author {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
}

/* --- Contact --- */
.section-contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-lead {
    font-size: 18px;
    color: var(--dark-gray);
    line-height: 1.7;
}

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

.contact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 17px;
    font-weight: 400;
    color: var(--near-black);
    line-height: 1.6;
}

a.contact-value:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background: var(--white);
    padding: 32px 0;
    border-top: 1px solid var(--light-gray);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-name {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 12px;
    color: var(--mid-gray);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-inner {
        gap: 40px;
    }

    .hero-image-wrap {
        max-width: 380px;
    }

    .hero-portrait {
        min-height: 480px;
    }

    .hero-image-accent {
        max-width: 380px;
    }

    .about-grid,
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image {
        order: -1;
    }

    .about-img {
        height: 400px;
    }

    .philosophy-image-wrap {
        position: relative;
        top: 0;
    }

    .philosophy-img {
        height: 500px;
    }

    .work-grid {
        gap: 24px;
    }
}

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

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-image {
        order: 2;
        justify-content: center;
    }

    .hero-image-wrap {
        max-width: 320px;
    }

    .hero-portrait {
        min-height: 420px;
    }

    .hero-image-accent {
        max-width: 320px;
        right: -12px;
        top: 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 500;
        color: var(--near-black) !important;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-toggle.active span {
        background: var(--black) !important;
    }

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

    .work-card {
        padding: 36px;
    }

    .section-label {
        margin-bottom: 32px;
    }

    .section-title {
        margin-bottom: 24px;
    }

    .philosophy-img {
        height: 450px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-image-wrap {
        max-width: 280px;
    }

    .hero-portrait {
        min-height: 360px;
    }

    .hero-image-accent {
        max-width: 280px;
    }

    .work-card {
        padding: 28px;
    }

    .work-card-image {
        height: 160px;
    }

    .philosophy-img {
        height: 380px;
    }

    .quote-block {
        padding: 0 8px;
    }
}
