/* ================================================================
   EASY SMILE LOGISTICS — Main Stylesheet
   Palette: Container Orange / Cargo Yellow / Dock White / Steel Ink
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --c-orange: #8B5E34;      /* warm brown — primary */
    --c-orange-dark: #6B4423; /* deep brown — pressed / hover */
    --c-yellow: #F2D680;      /* light yellow — accent */
    --c-yellow-soft: #FBF3DC; /* soft cream-yellow tint backgrounds */
    --c-white: #FFFFFF;
    --c-cream: #FFFBF3;       /* page background */
    --c-ink: #3A2A1D;         /* warm dark brown text */
    --c-ink-soft: #7A6A57;    /* secondary text */
    --c-line: #EDE0CB;        /* hairline borders */
    --c-success: #2E9E5B;
    --c-info: #2E7DAD;

    --font-display: 'Kanit', 'Sarabun', sans-serif;
    --font-body: 'Sarabun', sans-serif;

    --radius: 14px;
    --shadow-soft: 0 6px 24px rgba(35, 32, 27, 0.08);
    --shadow-strong: 0 14px 40px rgba(107, 68, 35, 0.18);
    --container-stripe: repeating-linear-gradient(
        90deg,
        var(--c-orange) 0px, var(--c-orange) 26px,
        var(--c-orange-dark) 26px, var(--c-orange-dark) 30px
    );
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--c-cream);
    color: var(--c-ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .5em;
    color: var(--c-ink);
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-orange-dark);
    background: var(--c-yellow-soft);
    border: 1px solid var(--c-yellow);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--c-ink-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--c-orange); color: var(--c-white); box-shadow: var(--shadow-strong); }
.btn-primary:hover { background: var(--c-orange-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--c-ink); color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-white); }
.btn-light { background: var(--c-white); color: var(--c-orange-dark); }
.btn-light:hover { background: var(--c-yellow-soft); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-danger { background: #C0392B; color: #fff; }

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 251, 243, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
    z-index: -1;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--c-ink); }
.brand-text span { color: var(--c-orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--c-ink);
    transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--c-orange);
    color: var(--c-white);
}
.nav-cta { margin-left: 8px; }

.lang-switch {
    display: flex;
    align-items: center;
    background: var(--c-yellow-soft);
    border: 1px solid var(--c-yellow);
    border-radius: 999px;
    padding: 3px;
    margin-left: 6px;
}
.lang-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--c-ink-soft);
}
.lang-btn.active { background: var(--c-orange); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--c-orange-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
    position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    left: 8px; right: 8px;
    height: 3px;
    background: var(--c-ink);
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -10px; }
.nav-toggle span::after { top: 10px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at 85% 20%, var(--c-yellow-soft) 0%, transparent 55%),
        var(--c-cream);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    letter-spacing: -.01em;
}
.hero h1 .hl { color: var(--c-orange); }
.hero p.lead { font-size: 1.08rem; color: var(--c-ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display); font-size: 1.6rem; color: var(--c-orange-dark); display: block; }
.hero-stat span { font-size: .85rem; color: var(--c-ink-soft); }

/* Signature element: animated trade-route map */
.route-map {
    position: relative;
    background: var(--c-white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
    border: 1px solid var(--c-line);
}
.route-map svg { width: 100%; height: auto; }
.route-path {
    fill: none;
    stroke: var(--c-orange);
    stroke-width: 2.5;
    stroke-dasharray: 6 8;
    animation: dash 30s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -400; } }
.route-dot { fill: var(--c-orange-dark); }
.route-dot.alt { fill: var(--c-yellow); stroke: var(--c-orange-dark); stroke-width: 1.5; }
.route-label { font-family: var(--font-display); font-size: 11px; fill: var(--c-ink); font-weight: 600; }

/* ============ CONTAINER STRIPE DIVIDER ============ */
.stripe-divider { height: 10px; background: var(--container-stripe); }

/* ============ SERVICES (container-card grid) ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--c-white);
    border-radius: var(--radius);
    border: 1px solid var(--c-line);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--container-stripe);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--c-yellow-soft);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--c-orange-dark);
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: .9rem; color: var(--c-ink-soft); margin: 0; }

/* ============ ROUTES / COUNTRIES ============ */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.route-card {
    background: linear-gradient(160deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
    color: var(--c-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.route-card h4 { color: var(--c-white); font-size: 1rem; margin-bottom: 6px; }
.route-card p { color: rgba(255,255,255,.85); font-size: .85rem; margin: 0; }

/* ============ ABOUT ============ */
.about-hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.stat-block {
    background: var(--c-ink);
    color: var(--c-white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}
.stat-block .years { font-family: var(--font-display); font-size: 4.2rem; font-weight: 800; color: var(--c-yellow); line-height: 1; }
.stat-block .years-label { font-size: 1rem; letter-spacing: .05em; margin-top: 6px; }
.caption-list { margin-top: 20px; display: grid; gap: 14px; }
.caption-item {
    background: var(--c-yellow-soft);
    border-left: 4px solid var(--c-orange);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--c-ink);
}

/* ============ PRODUCTS ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: var(--c-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}
.product-thumb {
    aspect-ratio: 4/3;
    background: var(--c-yellow-soft) url('data:image/svg+xml;utf8,') center/cover;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-orange-dark);
    font-size: 2rem;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat {
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--c-yellow-soft);
    color: var(--c-orange-dark);
    padding: 4px 10px;
    border-radius: 999px;
}
.product-body h3 { font-size: 1.1rem; margin: 4px 0; }
.product-body p.desc { font-size: .9rem; color: var(--c-ink-soft); flex: 1; }
.product-price { font-family: var(--font-display); font-weight: 700; color: var(--c-orange-dark); }
.product-body form { margin-top: 10px; }
.product-body summary { cursor: pointer; list-style: none; }
.product-body summary::-webkit-details-marker { display: none; }
.product-body details[open] summary { margin-bottom: 4px; }

/* ============ TRACKING BOX ============ */
.track-box {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
}
.track-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-box input {
    flex: 1; min-width: 180px;
    padding: 12px 16px;
    border: 1.5px solid var(--c-line);
    border-radius: 999px;
    font-family: var(--font-body);
}
.status-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}
.status-new { background: #FDECEA; color: #C0392B; }
.status-received { background: var(--c-yellow-soft); color: var(--c-orange-dark); }
.status-shipping { background: #E7F1FA; color: var(--c-info); }
.status-delivered { background: #E7F6EC; color: var(--c-success); }

.status-steps { display: flex; justify-content: space-between; margin-top: 20px; position: relative; }
.status-steps::before {
    content: ''; position: absolute; top: 15px; left: 5%; right: 5%; height: 3px; background: var(--c-line); z-index: 0;
}
.status-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.status-step .dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--c-line); color: var(--c-ink-soft);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; font-weight: 700; font-family: var(--font-display);
    border: 3px solid var(--c-cream);
}
.status-step.done .dot { background: var(--c-orange); color: #fff; }
.status-step span.label { font-size: .78rem; color: var(--c-ink-soft); }
.status-step.done span.label { color: var(--c-ink); font-weight: 600; }

/* ============ CONTACT ============ */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
}
.contact-card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.contact-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: var(--c-orange); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--c-ink-soft); }
.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-soft);
    min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.contact-form-box {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--c-line);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--c-cream);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none; border-color: var(--c-orange);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--c-ink);
    color: rgba(255,255,255,.8);
    padding: 56px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { color: rgba(255,255,255,.75); font-size: .9rem; display: block; margin-bottom: 8px; transition: color .15s; }
.footer a:hover { color: var(--c-yellow); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.55); flex-wrap: wrap; gap: 8px;
}

/* ============ ALERTS ============ */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #E7F6EC; color: #1E7A42; border: 1px solid #b6e3c6; }
.alert-error { background: #FDECEA; color: #B03A2E; border: 1px solid #f3b8b1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .routes-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero .container { grid-template-columns: 1fr; }
    .route-map { order: -1; max-width: 520px; margin: 0 auto; }
    .about-hero { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links { position: fixed; top: 78px; left: 0; right: 0; bottom: 0; background: var(--c-cream);
        flex-direction: column; align-items: stretch; padding: 20px; gap: 4px; z-index: 200;
        transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 14px 18px; font-size: 1.05rem; }
    .nav-toggle { display: block; }
    .lang-switch { align-self: flex-start; margin: 6px 0 6px 18px; }
    .services-grid { grid-template-columns: 1fr; }
    .routes-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; }
    .section { padding: 44px 0; }
    .hero { padding: 48px 0 30px; }
    .stat-block .years { font-size: 3.2rem; }
    .track-box form { flex-direction: column; }
    .track-box input { width: 100%; }
}
