/* =========================================================================
   URLA ADIN — Pure Minimalist Luxury
   Inspired by High-End Editorial & Architectural Portfolios
   ========================================================================= */

:root {
    --bg-color: #FDFCFB; /* Very warm, pure off-white */
    --text-color: #121212; /* Deep charcoal, almost black */
    --text-muted: #7A7A7A;
    --border-color: rgba(18, 18, 18, 0.15);
    --brand-brown: #4A3728;
    
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Manrope', system-ui, sans-serif;
    --font-display: 'Monument Extended', var(--font-serif);
    --font-brand: 'Monument Extended', var(--font-sans);

    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --padding-x: clamp(2rem, 5vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
    font-size: 16px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 18, 18, 0.18) transparent;
}

@font-face {
    font-family: 'Cocogoose Pro';
    src: url('../fonts/Cocogoose-Pro-Bold-trial.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('../fonts/monumentextended-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scroll lock for mobile menu only. Splash lock removed to fix bugs. */
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

.title-huge {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 6.5vw, 5.8rem);
    letter-spacing: -0.02em;
    font-weight: 400;
    line-height: 1.1;
}

.title-large {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    letter-spacing: 0.06em;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 3rem;
    text-align: left;
}

.section-heading .title-large {
    text-transform: none;
    letter-spacing: 0.04em;
}

.text-caption {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}

.text-body-large {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 1.5vw, 1.3rem);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.concept-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* =========================================================================
   HEADER (VERA Style)
   ========================================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--padding-x);
    background-color: rgba(253, 252, 251, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background-color 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
}

.site-header.scrolled {
    background-color: rgba(253, 252, 251, 0.85);
    padding: 1.2rem var(--padding-x);
    border-bottom: 1px solid var(--border-color);
}

.header-left { flex: 1; display: flex; align-items: center; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; }

/* Thin Burger Menu */
.menu-btn {
    width: 35px;
    height: 10px;
    position: relative;
    cursor: pointer;
    z-index: 110;
}
.menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transition: transform 0.4s var(--ease);
}
.menu-btn span:first-child { top: 0; }
.menu-btn span:last-child { bottom: 0; }
.menu-open .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo__mark {
    display: block;
    width: clamp(90px, 12vw, 130px);
    height: clamp(2rem, 4vw, 2.75rem);
    background-color: var(--brand-brown);
    -webkit-mask: url('../../../adinurlawenb/adinlogo.png') center / contain no-repeat;
    mask: url('../../../adinurlawenb/adinlogo.png') center / contain no-repeat;
}

/* Action Button */
.btn-outline {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0; /* Sharp corners like VERA */
    transition: all 0.4s var(--ease);
}
.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-color);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
}
.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}
.nav-list {
    list-style: none;
    text-align: center;
}
.nav-list li {
    margin-bottom: 2rem;
}
.nav-list a {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-style: italic;
    color: var(--text-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    display: inline-block;
}
.menu-open .nav-list a {
    opacity: 1;
    transform: translateY(0);
}
.nav-list li:nth-child(1) a { transition-delay: 0.1s; }
.nav-list li:nth-child(2) a { transition-delay: 0.2s; }
.nav-list li:nth-child(3) a { transition-delay: 0.3s; }
.nav-list li:nth-child(4) a { transition-delay: 0.4s; }
.nav-list li:nth-child(5) a { transition-delay: 0.5s; }

/* =========================================================================
   BRAND HERO (Image-clipped title at top)
   ========================================================================= */
.hero-brand {
    position: relative;
    min-height: clamp(280px, 38vh, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6.5rem, 13vh, 8.5rem) var(--padding-x) clamp(3rem, 6vh, 4rem);
    background-color: var(--bg-color);
    overflow: hidden;
}

.hero-brand__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-brand__title {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-brand__svg {
    display: block;
    width: min(100%, 1100px);
    height: auto;
    margin: 0 auto;
    overflow: visible;
    cursor: default;
}

.hero-brand__text {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 132px;
    letter-spacing: 0.06em;
    text-anchor: middle;
    dominant-baseline: middle;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-brand__text {
        font-size: clamp(52px, 12vw, 92px);
        letter-spacing: 0.04em;
    }
}

.hero-brand__stroke--bg {
    fill: transparent;
    stroke: rgba(18, 18, 18, 0.14);
    stroke-width: 1.4;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.hero-brand.is-hovered .hero-brand__stroke--bg {
    opacity: 0.75;
}

.hero-brand__stroke--draw {
    fill: transparent;
    stroke: rgba(18, 18, 18, 0.28);
    stroke-width: 1.4;
    stroke-dasharray: var(--stroke-len, 2400);
    stroke-dashoffset: var(--stroke-len, 2400);
}

.hero-brand.is-animating .hero-brand__stroke--draw {
    animation: heroBrandStrokeDraw var(--draw-ms, 4s) ease-in-out forwards;
}

.hero-brand__stroke--fill {
    fill: url(#heroVillaPattern);
    stroke: none;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
}

.hero-brand.is-revealed .hero-brand__stroke--fill {
    opacity: 1;
}

.hero-brand.is-reduced-motion .hero-brand__stroke--draw {
    animation: none;
    stroke-dashoffset: 0;
}

.hero-brand.is-reduced-motion .hero-brand__stroke--fill {
    animation: none;
    opacity: 1;
}

@keyframes heroBrandStrokeDraw {
    to { stroke-dashoffset: 0; }
}

/* =========================================================================
   SPLASH SCREEN
   ========================================================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.splash-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-inner {
    width: 100%;
    max-width: 700px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash-screen.is-active .splash-inner {
    opacity: 1;
    transform: translateY(0);
}

.splash-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    overflow: visible;
}

.splash-text {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 140px;
    letter-spacing: 0.08em;
    text-anchor: middle;
    dominant-baseline: middle;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .splash-text {
        font-size: 90px;
        letter-spacing: 0.06em;
    }
}

.splash-text--fill {
    fill: url(#splashVillaPattern);
    stroke: none;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.splash-screen.is-revealed .splash-text--fill {
    opacity: 1;
}

@keyframes splashStrokeDraw {
    to { stroke-dashoffset: 0; }
}

/* Scroll lock when splash screen is active */
body.splash-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* =========================================================================
   CUSTOM SCROLLBAR
   ========================================================================= */
/* Webkit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-track-piece {
    background: transparent;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(18, 18, 18, 0.18);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(18, 18, 18, 0.32);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 4rem var(--padding-x);
}

.hero-img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* Prevents direct interaction with the video */
}

/* Subtle gradient overlay just to ensure text readability if needed */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
    z-index: 1;
    pointer-events: auto; /* Intercepts all clicks and touches to protect the underlying video */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFF;
    width: 100%;
}

.hero-title-anim {
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.hero-title-anim__line {
    display: block;
    overflow: hidden;
}

.hero-title-anim__line > span {
    display: block;
    transform: translateY(108%);
    opacity: 0;
    filter: blur(10px);
    transition:
        transform 1.15s var(--ease),
        opacity 0.95s var(--ease),
        filter 1.05s var(--ease);
    transition-delay: calc(0.35s + var(--line-delay, 0s));
}

.hero-title-anim.is-visible .hero-title-anim__line > span {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-title-anim__line > span {
        transform: none;
        opacity: 1;
        filter: none;
        transition: none;
    }
}

.hero-title {
    color: #FFF;
    margin-bottom: 1rem;
}

/* =========================================================================
   SECTIONS & LAYOUTS (ROCA / VERA Inspired)
   ========================================================================= */
.section-pad {
    padding: clamp(6rem, 15vh, 12rem) var(--padding-x);
}

/* Asymmetric Text Block */
.text-block-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .text-block-split { grid-template-columns: 1fr; gap: 2rem; }
}

.text-block-split .left {
    padding-right: 10%;
}
.text-block-split .right {
    padding-left: 10%;
    border-left: 1px solid var(--border-color);
}
@media (max-width: 900px) {
    .text-block-split .left { padding-right: 0; }
    .text-block-split .right { padding-left: 0; border-left: none; border-top: 1px solid var(--border-color); padding-top: 2rem; }
}

/* Image + Text feature (ROCA style) */
.feature-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
    margin-bottom: clamp(6rem, 15vh, 12rem);
}
.feature-row.reverse {
    grid-template-columns: 1fr 1.2fr;
}
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 3rem; }
    .feature-row.reverse .feature-img { order: -1; }
}

.feature-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease);
}
.feature-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Clean Info List - Editorial Style */
.info-list {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}
.location-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.location-icon {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    opacity: 0.8;
}
.location-item span {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

/* Editoryal kolaj: 12 kolon, kasıtlı asimetri, nefes alan boşluklar */
.collage {
    margin-top: clamp(5rem, 10vh, 8rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

.collage__item { margin: 0; }
.collage__item img { width: 100%; }

.collage__item--1 { grid-column: 1 / span 9; }
.collage__item--1 img { aspect-ratio: 21/10; }

.collage__item--2 { grid-column: 10 / span 3; margin-top: clamp(4rem, 10vw, 9rem); }
.collage__item--2 img { aspect-ratio: 3/4; }

.collage__item--3 { grid-column: 2 / span 5; margin-top: clamp(1rem, 4vw, 3rem); }
.collage__item--3 img { aspect-ratio: 4/3; }

.collage__item--4 { grid-column: 8 / span 5; }
.collage__item--4 img { aspect-ratio: 16/11; }

@media (max-width: 800px) {
    .collage__item--1 { grid-column: 1 / span 12; }
    .collage__item--1 img { aspect-ratio: 16/10; }
    .collage__item--2 { grid-column: 5 / span 8; margin-top: 0; }
    .collage__item--3 { grid-column: 1 / span 10; margin-top: 0; }
    .collage__item--4 { grid-column: 3 / span 10; }
}

/* Gallery (Clean Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-caption {
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* =========================================================================
   LOCATION MAP
   ========================================================================= */
.location-map-wrapper {
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    background-color: #f4f4f4;
    mix-blend-mode: multiply; /* Helps the map blend with the background beautifully */
}

.location-map-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1) brightness(0.9);
    transition: transform 1.5s var(--ease);
}

.location-map-wrapper:hover .location-map-img {
    transform: scale(1.03);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    padding: 4rem var(--padding-x);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .site-footer { flex-direction: column; gap: 2rem; text-align: center; }
}

/* =========================================================================
   CINEMATIC VIDEO SECTION
   ========================================================================= */
.video-section {
    width: 100%;
    height: clamp(350px, 65vh, 750px);
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Prevents direct interaction with the video */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.02); /* Extremely subtle dark tint for elegant integration */
    pointer-events: auto; /* Intercepts all clicks, touches, and right-clicks to prevent pause/controls */
    z-index: 2;
}

/* =========================================================================
   ANIMATION CLASSES (Simple, elegant fade-ups)
   ========================================================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
