/*
Theme Name: Australian Freight Agency
Theme URI: https://australianfreightagency.com.au
Author: Australian Freight Agency
Author URI: https://australianfreightagency.com.au
Description: Custom theme for the Australian Freight Agency freight & logistics website — sea freight, air freight, customs clearance and warehousing.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afa
*/

/* ===== Australian Freight Agency — shared styles ===== */

:root {
    --blue: #0057A3;
    --blue-dark: #003f73;
    --blue-darker: #002b4f;
    --ink: #1a1a1a;
    --muted: #5a6573;
    --bg-soft: #f5f7fa;
    --bg-soft-2: #e9eef4;
    --border: #dce3ec;
    --white: #ffffff;
    --max-width: 1200px;
    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 40, 80, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 40, 80, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
}

a { color: inherit; }

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

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

h1, h2, h3 { font-weight: 700; line-height: 1.2; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); }

.btn-dark { background: var(--blue-darker); color: #fff; }
.btn-dark:hover { background: #001d36; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ===== small utilities ===== */
.mt-8 { margin-top: 8px; }

/* ===== Navbar ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--blue-dark);
    letter-spacing: -0.3px;
}

.brand .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.brand span.light { color: var(--blue); font-weight: 600; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-cta { margin-left: 8px; padding: 10px 22px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--blue-dark);
}

.nav-toggle svg { width: 28px; height: 28px; }

/* ===== Hero (Home) ===== */
.hero {
    position: relative;
    height: 92vh;
    min-height: 560px;
    overflow: hidden;
    /* gradient fallback shown behind / if video fails */
    background: linear-gradient(120deg, var(--blue-darker), var(--blue));
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,43,79,0.25), rgba(0,43,79,0.55));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 880px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin: 0 0 16px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 300;
    margin: 0 0 32px;
    color: #eaf1f8;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Page header (interior pages) ===== */
.page-header {
    background: linear-gradient(120deg, var(--blue-darker), var(--blue));
    color: #fff;
    padding: 80px 0 64px;
    text-align: center;
}

.page-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 14px; }
.page-header p { font-size: 1.15rem; font-weight: 300; max-width: 640px; margin: 0 auto; color: #dbe7f2; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--blue-dark); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}

/* ===== Services grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.service-box {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border-left: 5px solid var(--blue);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.service-box:hover {
    transform: translateY(-6px);
    background: var(--bg-soft-2);
    box-shadow: var(--shadow-md);
}

.service-box .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 87, 163, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-box .icon svg { width: 26px; height: 26px; }

.service-box h3 { font-size: 1.2rem; color: var(--blue-dark); margin: 0 0 10px; }
.service-box p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== Detailed service rows (services page) ===== */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse .service-media { order: 2; }

.service-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 280px;
    background: var(--blue-dark);
}

.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media.tall { min-height: 320px; }

.service-detail h2 { font-size: 1.8rem; color: var(--blue-dark); margin: 0 0 16px; }
.service-detail p { color: var(--muted); margin: 0 0 20px; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}
.feature-list li svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.feature-list.lg li { font-size: 1.02rem; }

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-grid h2 { font-size: 2rem; color: var(--blue-dark); margin: 0 0 18px; }
.about-grid p { color: var(--muted); margin: 0 0 16px; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 56px;
}
.stat {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border-top: 4px solid var(--blue);
}
.stat .num { font-size: 2.4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.value-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.value-card .icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: rgba(0,87,163,0.1); color: var(--blue);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h3 { color: var(--blue-dark); margin: 0 0 10px; font-size: 1.15rem; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ===== Contact / Quote ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2 { color: var(--blue-dark); font-size: 1.6rem; margin: 0 0 20px; }
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-info .info-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.contact-info .info-item .label { font-weight: 600; color: var(--ink); display: block; }
.contact-info .info-item .val { color: var(--muted); font-size: 0.95rem; }

.quote-form {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
}
.quote-form h2 { color: var(--blue-dark); font-size: 1.5rem; margin: 0 0 6px; }
.quote-form .sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: #334; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 163, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }

.form-success {
    display: none;
    background: #e6f4ea;
    border: 1px solid #9bd3ad;
    color: #1e6b3a;
    border-radius: var(--radius);
    padding: 16px 18px;
    font-weight: 500;
    margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ===== CTA band ===== */
.cta-band {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 72px 0;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.cta-band p { font-size: 1.15rem; color: #d6e6f5; margin: 0 0 28px; font-weight: 300; }

/* ===== Footer ===== */
.footer {
    background: var(--blue-darker);
    color: #cdd9e6;
    padding: 56px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 1.05rem; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer a { text-decoration: none; color: #aebfd0; font-size: 0.92rem; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer .foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer .foot-about { font-size: 0.9rem; color: #9fb2c6; max-width: 280px; }
.footer .foot-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; color: #aebfd0; }
.footer .foot-item svg { width: 18px; height: 18px; color: #6fa8d8; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #8ba0b6;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 480px; }
    .nav-links li { padding: 0 24px; }
    .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--bg-soft-2); }
    .nav-cta { margin: 12px 24px; }

    .service-detail,
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .service-detail.reverse .service-media { order: 0; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}
