/* ============================================
   AEP Group — Static Placeholder Website
   Modern, professional real estate design
   ============================================ */

:root {
    /* Color palette — Mediterranean-inspired */
    --color-primary: #1a365d;
    --color-primary-light: #2c5282;
    --color-accent: #c9a227;
    --color-accent-light: #e6c84b;
    --color-bg: #f8f9fa;
    --color-bg-alt: #ffffff;
    --color-text: #1a202c;
    --color-text-muted: #4a5568;
    
    /* Typography */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 72px;
    
    /* Transitions */
    --transition: 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: top var(--transition);
}

.skip-link:focus {
    top: var(--space-md);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
    transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.logo-group {
    color: var(--color-text);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 54, 93, 0.85) 0%,
        rgba(26, 54, 93, 0.6) 50%,
        rgba(26, 54, 93, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--header-height) var(--space-md) var(--space-2xl);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.hero-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--color-accent-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.5); }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: var(--space-2xl) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.section-title--center {
    text-align: center;
}

/* ============================================
   About Section
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.about-details {
    display: flex;
    gap: var(--space-xl);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   Values Section
   ============================================ */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.value-card {
    padding: var(--space-xl);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item--large {
    grid-row: span 2;
    align-self: stretch;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--large img {
    min-height: 100%;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.contact-address {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.contact-reg,
.contact-domain {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-domain {
    margin-top: var(--space-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.contact-map {
    position: relative;
    min-height: 280px;
}

.map-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 54, 93, 0.4);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.map-link:hover .map-overlay,
.map-link:focus-visible .map-overlay {
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
}

.footer-legal {
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 900px) {
    /* Tablet and below */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-row: span 1;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .values-grid {
        gap: var(--space-md);
    }
}

/* Error page */
.error-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page .about-lead {
    max-width: 32rem;
    margin: 0 auto var(--space-lg);
}

@media (max-width: 600px) {
    /* Mobile */
    .nav-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .nav-links {
        gap: var(--space-md);
    }
    
    .hero-title-sub {
        letter-spacing: 0.1em;
    }
    
    .about-details {
        flex-direction: column;
        gap: var(--space-md);
    }
}
