/* ===== SUBWAY THAILAND - OFFICIAL WEBSITE ===== */
/* Color Palette - Subway Brand */
:root {
    --subway-green: #008C15;
    --subway-green-dark: #006B10;
    --subway-green-light: #00A81B;
    --subway-yellow: #FFC600;
    --subway-yellow-dark: #E5B200;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Kanit', 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--subway-green);
    color: var(--white);
    border-color: var(--subway-green);
}

.btn--primary:hover {
    background: var(--subway-green-dark);
    border-color: var(--subway-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--subway-green);
    border-color: var(--subway-green);
}

.btn--outline:hover {
    background: var(--subway-green);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ===== HEADER & NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo-img {
    height: 40px;
    width: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 400;
    color: #6B7280;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--subway-green);
    background: rgba(0, 140, 21, 0.05);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--subway-green) 0%, var(--subway-green-dark) 100%);
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1920&h=1080&fit=crop&q=80') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

.hero__container {
    position: relative;
    z-index: 2;
    padding: 8rem 1.5rem 4rem;
}

.hero__content {
    max-width: 650px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__highlight {
    color: var(--subway-yellow);
}

.hero__description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__buttons .btn--primary {
    background: var(--subway-yellow);
    color: var(--gray-900);
    border-color: var(--subway-yellow);
}

.hero__buttons .btn--primary:hover {
    background: var(--subway-yellow-dark);
    border-color: var(--subway-yellow-dark);
}

.hero__buttons .btn--outline {
    color: var(--white);
    border-color: var(--white);
}

.hero__buttons .btn--outline:hover {
    background: var(--white);
    color: var(--subway-green);
}

/* ===== FEATURES ===== */
.features {
    padding: 4rem 0;
    background: var(--gray-50);
    margin-top: -2rem;
    position: relative;
    z-index: 3;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature__card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature__icon {
    margin-bottom: 0;
}

.feature__card {
    text-align: center;
    padding: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature__card .feature__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    filter: blur(5px);
    transform: scale(1.1);
}

.feature__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.feature__title {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.feature__text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== SECTION HEADER ===== */
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MENU ===== */
.menu {
    padding: 5rem 0;
}

.menu__categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.menu__tab {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.menu__tab:hover,
.menu__tab.active {
    border-color: var(--subway-green);
    color: var(--subway-green);
    background: rgba(0, 140, 21, 0.05);
}

.menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.menu__card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.menu__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.menu__card-image {
    position: relative;
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}

.menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--subway-yellow);
    color: var(--gray-900);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.menu__badge--new {
    background: var(--subway-green);
    color: var(--white);
}

.menu__card-content {
    padding: 1.25rem;
}

.menu__card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}

.menu__card-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.menu__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--subway-green);
}

.menu__cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== PROMOTIONS ===== */
.promotions {
    padding: 5rem 0;
    background: var(--gray-50);
}

.promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.promo__card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo__card--featured {
    background: linear-gradient(135deg, var(--subway-green) 0%, var(--subway-green-dark) 100%);
    color: var(--white);
    border: none;
}

.promo__card--featured .promo__badge {
    background: var(--subway-yellow);
    color: var(--gray-900);
}

.promo__card--featured .btn {
    background: var(--subway-yellow);
    color: var(--gray-900);
    border-color: var(--subway-yellow);
}

.promo__badge {
    display: inline-block;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.promo__badge--green { background: #DCFCE7; color: #16A34A; }
.promo__badge--purple { background: #EDE9FE; color: #7C3AED; }

.promo__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.promo__desc {
    font-size: 0.9rem;
    opacity: 0.85;
}

.promo__period {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== LOCATIONS ===== */
.locations {
    padding: 5rem 0;
}

.locations__search {
    margin-bottom: 2rem;
}

.search__box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search__box:focus-within {
    border-color: var(--subway-green);
    box-shadow: 0 0 0 3px rgba(0, 140, 21, 0.1);
}

.search__input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.search__btn {
    padding: 0.875rem 1.25rem;
    background: var(--subway-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search__btn:hover {
    background: var(--subway-green-dark);
}

.locations__filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter__btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter__btn:hover,
.filter__btn.active {
    border-color: var(--subway-green);
    color: var(--subway-green);
    background: rgba(0, 140, 21, 0.05);
}

.locations__list {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.location__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.location__card:hover {
    border-color: var(--subway-green);
    box-shadow: var(--shadow-md);
}

.location__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location__address {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.location__hours {
    font-size: 0.8rem;
    color: var(--subway-green);
    font-weight: 500;
}

/* ===== ABOUT ===== */
.about {
    padding: 5rem 0;
    background: var(--gray-50);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--subway-green);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== FRANCHISE ===== */
.franchise {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--subway-green) 0%, var(--subway-green-dark) 100%);
    color: var(--white);
}

.franchise .section__title {
    color: var(--white);
}

.franchise .section__subtitle {
    color: rgba(255,255,255,0.8);
}

.franchise__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit__item {
    text-align: center;
    padding: 1.5rem;
}

.benefit__icon {
    display: block;
    margin-bottom: 0;
}

.benefit__icon .benefit__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    border: none;
    filter: blur(5px);
    transform: scale(1.1);
}

.benefit__item {
    text-align: center;
    padding: 0;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.benefit__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.benefit__item h4 {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.benefit__item p {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
}

.franchise__content {
    text-align: center;
}

.franchise .btn--primary {
    background: var(--subway-yellow);
    color: var(--gray-900);
    border-color: var(--subway-yellow);
}

.franchise .btn--primary:hover {
    background: var(--subway-yellow-dark);
    border-color: var(--subway-yellow-dark);
}

/* ===== CAREERS ===== */
.careers {
    padding: 5rem 0;
}

.careers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.career__card {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.career__card:hover {
    border-color: var(--subway-green);
    box-shadow: var(--shadow-md);
}

.career__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.career__location {
    font-size: 0.8rem;
    color: var(--subway-green);
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.career__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 5rem 0;
    background: var(--gray-50);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact__item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact__item p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact__form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form__input:focus {
    border-color: var(--subway-green);
    box-shadow: 0 0 0 3px rgba(0, 140, 21, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #1a3a2a;
    color: #c8ddd2;
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    height: 36px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__desc {
    font-size: 0.9rem;
    color: #9abfaa;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #244d38;
    color: #9abfaa;
    transition: var(--transition);
}

.social__link:hover {
    background: var(--subway-green-light);
    color: var(--white);
}

.footer__title {
    font-size: 1rem;
    font-weight: 600;
    color: #e8f5ee;
    margin-bottom: 1rem;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    font-size: 0.9rem;
    color: #9abfaa;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--subway-yellow);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid #2d5c44;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: #7aa892;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about__grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        padding: 4rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__close {
        display: block;
    }

    .nav__actions .btn {
        display: none;
    }

    .hero__title { font-size: 2.25rem; }
    .hero__buttons { flex-direction: column; }
    .about__stats { gap: 1.5rem; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .menu__grid { grid-template-columns: 1fr; }
    .location__card { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ===== SVG IMAGE STYLING ===== */
.menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
