/* ============================
   ESEM Sanat Evi - Style Sheet
   ============================ */

/* CSS Reset & Variables */
:root {
    /* Color Palette - Warm, natural tones */
    --ivory: #F7F5F0;
    --ivory-light: #FDFCFA;
    --stone-gray: #6B665F;
    --stone-light: #9A958E;
    --earth: #A0826D;
    --earth-dark: #7D6655;
    --antique: #E8E0D5;
    --antique-dark: #D4C9BA;
    --charcoal: #1E1B18;
    --charcoal-light: #3A3632;
    --brown: #5C4033;
    --brown-light: #7A5A48;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.5rem, 5vw, 3rem);

    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 450;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--ivory);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B8B3AC' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================
   Header & Navigation
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--antique);
    transition: var(--transition-medium);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(44, 40, 36, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--charcoal);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--charcoal-light);
    position: relative;
    transition: var(--transition-fast);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--earth);
    transition: var(--transition-medium);
}

.nav-menu a:hover {
    color: var(--charcoal);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switch Button */
.nav-lang {
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--antique-dark);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--antique);
    border-radius: 4px;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.lang-switch:hover {
    background: var(--earth);
    color: var(--ivory) !important;
}

.lang-switch::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition-fast);
}

/* ============================
   Hero Section
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 6rem var(--container-padding) 3rem;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 550px;
    text-align: left;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--earth);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title strong {
    color: var(--brown);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--charcoal-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--charcoal);
    color: var(--ivory);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border: 1px solid var(--charcoal);
    transition: var(--transition-medium);
}

.hero-cta:hover {
    background: transparent;
    color: var(--charcoal);
}

.hero-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    padding: 1rem;
    background: var(--antique);
    position: relative;
}

.hero-gallery::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--antique-dark);
    z-index: -1;
}

.hero-gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-gallery-item:hover img {
    transform: scale(1.05);
}

/* Keep old hero-image for fallback */
.hero-image {
    position: relative;
    height: 70vh;
    max-height: 700px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(44, 40, 36, 0.15);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--antique-dark);
    z-index: -1;
}

/* ============================
   Section Base Styles
   ============================ */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    text-align: center;
}

.section-intro {
    font-size: 1.1rem;
    font-weight: 450;
    color: var(--charcoal-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* ============================
   About Section
   ============================ */
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--charcoal-light);
    font-weight: 450;
    font-size: 1.05rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--antique);
    border-left: 2px solid var(--earth);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
}

.feature-desc {
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--charcoal-light);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    box-shadow: 0 15px 50px rgba(44, 40, 36, 0.12);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--antique-dark);
    z-index: -1;
}

/* ============================
   Gallery Section
   ============================ */
.gallery-section {
    background: var(--ivory-light);
}

.gallery-description {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    justify-content: center;
}

.gallery-description p {
    flex: 1;
    max-width: 500px;
    color: var(--charcoal-light);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 768px) {
    .gallery-description {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--antique);
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(44, 40, 36, 0.85), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ivory);
    letter-spacing: 0.02em;
}

/* ============================
   Process Section
   ============================ */
.process {
    background: var(--antique);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.process-step {
    padding: 2rem;
    background: var(--ivory);
    position: relative;
}

.process-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--antique-dark);
    margin-bottom: 1rem;
    line-height: 1;
}

.process-step h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.95rem;
    font-weight: 450;
    color: var(--charcoal-light);
    line-height: 1.6;
}

.process-note {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--antique-dark);
}

.process-note p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    font-style: italic;
}

/* ============================
   Calligraphy Section
   ============================ */
.calligraphy {
    background: var(--charcoal);
}

.calligraphy .section-title,
.calligraphy .section-intro {
    color: var(--ivory);
}

.calligraphy .section-intro {
    color: var(--stone-light);
}

.calligraphy-description {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    justify-content: center;
}

.calligraphy-description p {
    flex: 1;
    max-width: 500px;
    color: var(--stone-light);
    font-size: 1.05rem;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 768px) {
    .calligraphy-description {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.calligraphy-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.calligraphy-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--charcoal-light);
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

.calligraphy-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.calligraphy-item:hover img {
    transform: scale(1.03);
}

.calligraphy-note {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--charcoal-light);
}

.calligraphy-note p {
    font-size: 0.95rem;
    color: var(--stone-light);
    font-style: italic;
}

/* ============================
   Contact Section
   ============================ */
.contact {
    background: var(--ivory-light);
}

.contact .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info p {
    color: var(--charcoal-light);
    margin-bottom: 2rem;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--antique);
    color: var(--charcoal);
    font-size: 1rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.instagram-link:hover {
    background: transparent;
    border-color: var(--antique-dark);
}

.instagram-link svg {
    width: 22px;
    height: 22px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--ivory);
    border: 1px solid var(--antique-dark);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--earth);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ivory);
    background: var(--charcoal);
    border: 1px solid var(--charcoal);
    cursor: pointer;
    transition: var(--transition-medium);
    align-self: flex-start;
}

.submit-btn:hover {
    background: transparent;
    color: var(--charcoal);
}

/* ============================
   Footer
   ============================ */
.footer {
    padding: 3rem var(--container-padding);
    background: var(--charcoal);
    text-align: center;
}

.footer-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--stone-gray);
}

/* ============================
   Lightbox
   ============================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 40, 36, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--stone-gray);
    color: var(--ivory);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--ivory);
    color: var(--charcoal);
    border-color: var(--ivory);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: transparent;
    border: 1px solid var(--stone-gray);
    color: var(--ivory);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-nav:hover {
    background: var(--ivory);
    color: var(--charcoal);
    border-color: var(--ivory);
}

/* ============================
   Animations
   ============================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1200px) {

    .gallery-grid,
    .calligraphy-grid {
        column-count: 2;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        gap: 3rem;
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        order: 2;
        text-align: center;
        max-width: 100%;
    }

    .hero-gallery {
        order: 1;
        max-width: 400px;
    }

    .hero-gallery::before {
        display: none;
    }

    .hero-image {
        order: 1;
        height: 50vh;
    }

    .hero-image::before {
        display: none;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-image::after {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-medium);
        box-shadow: -10px 0 30px rgba(44, 40, 36, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

    .gallery-grid,
    .calligraphy-grid {
        column-count: 2;
    }

    .gallery-info {
        opacity: 1;
        transform: translateY(0);
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        flex-direction: column;
    }

    .lightbox-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }

    .submit-btn {
        width: 100%;
    }
}