/* =============================================
   AYFAYAS EV YEMEKLERİ – STYLESHEET
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-olive: #5B7A3A;
    --color-olive-light: #f0f4ec;
    --color-olive-dark: #3d5428;
    --color-amber: #D4912A;
    --color-amber-light: #f5ddb0;
    --color-cream: #FBF7F0;
    --color-espresso: #3B2F2F;
    --color-espresso-light: #5C4A4A;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', 'Source Serif 4', Georgia, serif;
    --font-ui: 'DM Sans', 'Segoe UI', sans-serif;

    --container-max: 1200px;
    --header-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(59, 47, 47, 0.08);
    --shadow-hover: 0 8px 32px rgba(59, 47, 47, 0.14);
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-espresso);
    background-color: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-olive);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-amber);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-espresso);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-espresso-light);
    text-align: center;
    margin-bottom: 48px;
    font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn__icon {
    flex-shrink: 0;
}

.btn--primary {
    background-color: var(--color-amber);
    color: var(--color-espresso);
}

.btn--primary:hover {
    background-color: #c17f1e;
    color: var(--color-espresso);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 145, 42, 0.35);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-espresso);
}

.btn--cta {
    background-color: var(--color-amber);
    color: var(--color-espresso);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn--cta:hover {
    background-color: #c17f1e;
    color: var(--color-espresso);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Pulse animation */
.btn--pulse {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 145, 42, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 6px rgba(212, 145, 42, 0.2);
    }
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgba(251, 247, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
    background-color: rgba(251, 247, 240, 0.95);
    box-shadow: 0 2px 20px rgba(59, 47, 47, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-espresso);
    white-space: nowrap;
}

.header__logo:hover {
    color: var(--color-espresso);
}

.logo-accent {
    color: var(--color-olive);
    font-weight: 400;
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-espresso);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-amber);
    transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--color-olive);
}

.header__cta {
    flex-shrink: 0;
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--color-espresso);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(91, 122, 58, 0.82) 0%, rgba(59, 47, 47, 0.75) 100%),
        linear-gradient(180deg, var(--color-olive-dark), var(--color-espresso));
    background-size: cover;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 145, 42, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(91, 122, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 100px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-30px);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(-20px);
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(-10px);
}

/* Load animation */
.hero__title.animate-visible {
    animation: slideDown 0.8s ease forwards;
}

.hero__subtitle.animate-visible {
    animation: slideDown 0.8s ease 0.2s forwards;
}

.hero__buttons.animate-visible {
    animation: slideDown 0.8s ease 0.4s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Wave Dividers ---------- */
.wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-divider--hero {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0 0;
    background-color: var(--color-cream);
    position: relative;
}

.about__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__paragraph {
    font-size: 1.05rem;
    color: var(--color-espresso-light);
    margin-bottom: 20px;
    line-height: 1.85;
}

.about__paragraph strong {
    color: var(--color-olive);
    font-weight: 600;
}

.about__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__icon-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-olive-light), rgba(212, 145, 42, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(91, 122, 58, 0.2);
}

/* ---------- SERVICES ---------- */
.services {
    padding: 80px 0 0;
    background-color: var(--color-olive-light);
    position: relative;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--color-olive-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.service-card:hover .service-card__icon {
    transform: scale(1.08);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--color-espresso-light);
    line-height: 1.7;
}

/* ---------- VISION ---------- */
.vision {
    padding: 80px 0 0;
    background-color: var(--color-cream);
    position: relative;
}

.vision__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.vision-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.vision-card__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: var(--color-olive-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}

.vision-card:hover .vision-card__icon {
    transform: rotate(8deg) scale(1.1);
}

.vision-card__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 8px;
}

.vision-card__text {
    font-size: 0.95rem;
    color: var(--color-espresso-light);
    line-height: 1.7;
}

/* ---------- STATS ---------- */
.stats {
    background-color: var(--color-olive-dark);
    padding: 64px 0;
    position: relative;
}

.stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat {
    padding: 20px;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    display: block;
}

.stat__plus {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-amber);
}

.stat__text-value {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.stat__label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- CONTACT ---------- */
.contact {
    padding: 100px 0;
    background-color: var(--color-cream);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.contact__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact__item strong {
    display: block;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 4px;
}

.contact__item p {
    font-size: 0.95rem;
    color: var(--color-espresso-light);
    line-height: 1.6;
}

.contact__item a {
    color: var(--color-olive);
    font-weight: 600;
}

.contact__cta {
    margin: 8px 0 32px;
}

.contact__hours {
    padding: 20px 24px;
    background-color: var(--color-olive-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-olive);
}

.contact__hours strong {
    font-family: var(--font-ui);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.contact__hours p {
    font-size: 0.9rem;
    color: var(--color-espresso-light);
    margin-bottom: 4px;
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--color-espresso);
    color: var(--color-cream);
    padding-top: 60px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-cream);
}

.footer__logo .logo-accent {
    color: var(--color-amber-light);
}

.footer__slogan {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(251, 247, 240, 0.6);
    margin-top: 8px;
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: rgba(251, 247, 240, 0.75);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--color-amber);
}

.footer__contact p {
    font-size: 0.9rem;
    color: rgba(251, 247, 240, 0.75);
    margin-bottom: 8px;
}

.footer__contact a {
    color: rgba(251, 247, 240, 0.75);
}

.footer__contact a:hover {
    color: var(--color-amber);
}

.footer__bottom {
    border-top: 1px solid rgba(251, 247, 240, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer__bottom p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: rgba(251, 247, 240, 0.5);
}

/* ---------- Animations: Fade Up ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__visual {
        order: -1;
    }

    .about__icon-box {
        width: 150px;
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-cream);
        padding: 100px 32px 40px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .header__nav.open {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .header__cta {
        display: none;
    }

    .hero__content {
        padding: 100px 16px 80px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .vision__grid {
        grid-template-columns: 1fr;
    }

    .vision-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .stats__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact__inner {
        grid-template-columns: 1fr;
    }

    .contact__map iframe {
        min-height: 300px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer__nav ul {
        align-items: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn--large {
        width: 100%;
        justify-content: center;
    }

    .stats__inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 12px;
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .hero__title,
    .hero__subtitle,
    .hero__buttons {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-amber);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to content (screen reader) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
