/* --- Quiet Luxury & Minimalist Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Palette: Monochrome & Earthy */
    --bg-color: #FAFAFA;
    /* Off-white, paper-like */
    --text-color: #1A1A1A;
    /* Almost black, softer than #000 */
    --text-light: #555555;
    /* Dark Grey for secondary text */
    --accent-color: #1A1A1A;
    /* Using black as the primary accent for high contrast */
    --border-color: #E5E5E5;
    /* Very subtle borders */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #000;
    /* Black background to support image fading */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typographic Logo --- */
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    /* Wide tracking for prestige */
    color: var(--text-color);
    text-transform: uppercase;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Elegant, not bold */
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

/* Subtle underline for H2 */
h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--text-color);
    margin-top: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-weight: 300;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    /* Slightly narrower for reading comfort */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.page-content {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
    /* Ensure content sits atop background */
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 5%;
    background-color: transparent;
    /* Seamless blend */
    position: absolute;
    /* Overlay on Hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo img {
    height: 50px;
    /* Smaller, more discreet */
    width: auto;
    filter: grayscale(100%);
    /* Ensure logo fits monochrome theme */
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.navbar nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    position: relative;
}

/* Minimalist hover effect */
.navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

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

.contact-btn {
    border-bottom: 1px solid var(--text-color);
    /* Just a line, not a box */
    padding-bottom: 2px;
}

/* --- Hero Section --- */
.hero-section {
    height: 90vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    /* No gradient */
    padding: 0 var(--spacing-md);
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Services / Cards (Grid System) --- */
.cards,
.service-cards,
.ethics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    /* Large gaps */
    margin-top: var(--spacing-lg);
}

.card,
.commitment-card {
    background: transparent;
    /* No background */
    padding: 0;
    /* No padding inside the card itself, let it breathe */
    border: none;
    /* No border */
    box-shadow: none;
    /* No shadow */
    text-align: left;
}

.card h3,
.commitment-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-sm);
    border-left: 2px solid var(--text-color);
    /* Minimal accent */
}

.card p,
.commitment-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
}

/* --- Vision Section --- */
.vision-section {
    text-align: left;
    /* Align left for better readability */
}

.vision-content h3 {
    font-size: 1.75rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-color) !important;
    /* Override inline styles */
}

.vision-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    text-align: justify;
    hyphens: auto;
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-form-container,
.contact-info {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.contact-info {
    color: var(--text-color);
    background-color: transparent;
    /* Remove dark background */
}

.contact-info h3 {
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-light);
    text-align: justify;
    hyphens: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: var(--spacing-sm) 0;
    /* Bottom border only style */
    margin-bottom: var(--spacing-md);
    border: none;
    border-bottom: 1px solid #CCC;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--text-color);
}

.cta-button {
    background-color: var(--text-color);
    color: #FFF;
    border: none;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #333;
}

/* --- Footer --- */
.footer {
    background-color: #000;
    /* User requested black footer */
    color: #FFF;
    /* White text for contrast */
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: none;
    /* remove border if black bg */
    width: 100%;
    margin-bottom: 0;
}

.footer p {
    font-family: var(--font-heading);
    /* Playfair Display like logo */
    font-size: 0.9rem;
    /* Small scale */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    /* Match logo weight */
    margin: 0;
    /* Remove paragraph default margin */
    color: #FFF;
}

/* --- Responsive --- */


/* --- Large Screens (>1920px) --- */
@media (min-width: 1921px) {
    .container {
        max-width: 1400px;
        /* Wider container for large screens */
    }

    html {
        font-size: 18px;
        /* Scale up base font size */
    }

    .hero-content h1 {
        font-size: 5rem;
    }
}

/* --- Small Laptops (1024px - 1366px) --- */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 960px;
        /* Ensure content fits comfortably */
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* --- New Design System Updates (London Grid & Hero) --- */

/* Hero Image Integration */
/* Navbar Overrides for Dark Hero */
.navbar a,
.navbar .logo-text,
.navbar .contact-btn {
    color: #FFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.navbar nav a::after {
    background-color: #FFF !important;
}

.navbar .contact-btn {
    border-bottom-color: #FFF !important;
}

/* Hero Image Integration */
/* Global Background System */
body {
    position: relative;
    /* Ensure content sits on top */
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    /* Fixed to cover entire viewport including footer scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Default global background (Stable Reset) */
    background-image: url('hero-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* Ensure dark enough for white text */
    filter: brightness(0.4) saturate(0.8);
    transform: none;
    opacity: 1;
    z-index: -1;
    /* CRITICAL: Pushes background behind text but above body canvas */
}

/* Page Specific Backgrounds - REMOVED per user request */
/* Body classes (page-home, page-expertise etc) can remain in HTML for future use */

body.page-home::before {
    /* Identical to global for consistency */
    background-image: url('hero-bg.png');
    filter: brightness(0.4) saturate(0.8);
    transform: none;
    opacity: 1;
}

/* Content Text Color Overrides - FORCE WHITE VISIBILITY */
.page-content,
.vision-content h3,
.contact-info h3,
.contact-info p,
.card h3 {
    color: #FFF !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Improve readability */
}

.page-content h2 {
    color: #FFF !important;
    border-bottom-color: #FFF !important;
}

/* Fix: Ensure 'Yasal Uyari' etc. (h4) are visible */
.contact-info h4,
.contact-info p {
    color: #FFF !important;
}

.london-grid,
.london-grid-item {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.london-grid-item h3,
.london-grid-item p,
.london-grid-item .item-number {
    color: #FFF !important;
}

/* Contact Form Enhancements */
.contact-form input,
.contact-form textarea {
    color: #FFF !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    /* Subtle glass fill */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Visible frame */
    border-radius: 4px;
    /* Slight rounding for frame */
    padding: var(--spacing-sm) !important;
    /* Add padding inside frame */
    margin-bottom: var(--spacing-md);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #FFF !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Submit Button Visibility */
.cta-button {
    background-color: transparent !important;
    border: 1px solid #FFF !important;
    color: #FFF !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFF !important;
    color: #000 !important;
    border-color: #FFF !important;
    /* Keep border on hover */
}

/* Legal Links Visibility */
.contact-info a {
    color: #FFF !important;
    text-decoration: underline;
    opacity: 0.8;
}

.contact-info a:hover {
    opacity: 1;
}

/* Reset Hero Section local BG since we moved it to body */
.hero-section::before {
    display: none;
}

.hero-section {
    background: transparent;
}

.hero-content h1,
.hero-content p,
.hero-subtitle {
    color: #FFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* London Grid System (Vertical Stack as per User Request) */
.london-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column stack */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.london-grid-item {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* Each item has a bottom border */
    border-right: none;
    /* No internal vertical borders needed for single column */
    border-color: rgba(255, 255, 255, 0.3) !important;
    transition: background-color 0.4s ease;
    /* Split Layout: Left Header, Right Content */
    display: grid;
    grid-template-columns: 35% 65%;
    gap: var(--spacing-md);
    align-items: baseline;
    justify-content: start;
    text-align: left;
}

.london-grid-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.london-grid-item h3 {
    grid-column: 1;
    font-size: 1.8rem;
    /* Slightly smaller for split visual balance */
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    border-left: none;
    padding-left: 0;
    letter-spacing: -0.02em;
    padding-right: var(--spacing-sm);
    /* Avoid collision */
}

.london-grid-item .item-number {
    grid-column: 1;
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Wrapper for text content to keep paragraphs together in right column */
.london-grid-item .text-content {
    grid-column: 2;
    display: block;
}

.london-grid-item .text-content p {
    font-size: 1.05rem;
    line-height: 1.45;
    /* Slightly tighter line height */
    color: var(--text-light);
    margin-bottom: 0.25rem !important;
    /* Force Very Tight Gap (4px) */
    text-align: justify;
    /* Justified text as requested */
}

.london-grid-item .text-content p:last-child {
    margin-bottom: 0;
}

/* Specific overrides for Etik page to match London Grid */
#etik .london-grid {
    margin-top: var(--spacing-lg);
}
/* --- Responsive (Mobile) - Moved to End for Specificity --- */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        position: relative;
        /* Stack normally on mobile */
        background-color: transparent;
        padding: var(--spacing-sm);
    }

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }

    .hero-section {
        height: auto;
        min-height: 60vh;
        /* Ensure some height on mobile */
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 2.2rem;
        /* Adjusted for better mobile fit */
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    .london-grid-item {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        /* Reduced padding for mobile */
    }

    .london-grid-item h3,
    .london-grid-item .item-number,
    .london-grid-item p {
        grid-column: 1;
        /* Everything in one column */
    }

    .london-grid-item .text-content {
        grid-column: 1 !important;
        /* Force wrapper to single column on mobile */
    }
}
