/* ============================================================
   Pioneer Amaresa Inc. | Pioneer ATD Corp.
   Main Stylesheet — Industrial Theme
   Colors: Forest Green #1B4332 | Charcoal #212529 | Off-White #F8F9FA
   ============================================================ */

/* ── Custom Properties ── */
:root {
    --green-dark:    #1B4332;
    --green-mid:     #2D6A4F;
    --green-light:   #40916C;
    --green-accent:  #74C69D;
    --charcoal:      #212529;
    --charcoal-mid:  #343A40;
    --charcoal-light:#6C757D;
    --off-white:     #F8F9FA;
    --white:         #FFFFFF;
    --border:        #DEE2E6;
    --shadow-sm:     0 2px 6px rgba(0,0,0,.08);
    --shadow-md:     0 4px 18px rgba(0,0,0,.12);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.16);
    --radius:        6px;
    --radius-lg:     12px;
    --transition:    .25s ease;
    --font-sans:     'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:     'Courier New', monospace;
    --max-width:     1200px;
    --nav-height:    70px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--off-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--green-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--charcoal-mid); }
p:last-child { margin-bottom: 0; }

small { font-size: .875rem; color: var(--charcoal-light); }

.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-light);
    display: block;
    margin-bottom: .5rem;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
}
.btn-primary:hover {
    background: var(--green-mid);
    border-color: var(--green-mid);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border-color: var(--green-dark);
}
.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-dark);
}
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ── Navigation ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--charcoal);
    box-shadow: var(--shadow-md);
}

.logo-bar {
    background: var(--white);
    border-bottom: 2px solid var(--green-dark);
    padding: .6rem 0;
}
.logo-bar .container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.logo-item { display: flex; align-items: center; }
.logo-item img {
    height: 52px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}
.logo-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
}
.tagline {
    margin-left: auto;
    font-size: .78rem;
    color: var(--charcoal-light);
    text-align: right;
    line-height: 1.4;
}
.tagline strong { display: block; color: var(--charcoal); font-size: .85rem; }

.nav-bar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
}
.nav-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.nav-menu li a {
    display: block;
    padding: .5rem .85rem;
    color: #ccc;
    font-size: .9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,.08);
    color: var(--white);
}
.nav-menu li a.active { color: var(--green-accent); }

.nav-cta { margin-left: 1rem; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--charcoal) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(64,145,108,.18) 0%, transparent 65%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(255,255,255,.015) 30px,
            rgba(255,255,255,.015) 31px
        );
}
.hero .container { position: relative; z-index: 1; padding-block: 5rem; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--green-accent); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Section Defaults ── */
.section { padding-block: 5rem; }
.section-alt { background: var(--white); }
.section-dark {
    background: var(--charcoal);
    color: var(--off-white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.7); }
.section-green {
    background: var(--green-dark);
    color: var(--off-white);
}
.section-green h2, .section-green h3 { color: var(--white); }
.section-green p { color: rgba(255,255,255,.8); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { max-width: 600px; margin-inline: auto; }

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.75rem; }
.card-icon {
    width: 54px; height: 54px;
    background: var(--green-dark);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.5rem;
}
.card-dark {
    background: var(--charcoal-mid);
    border: 1px solid rgba(255,255,255,.07);
}
.card-dark h3, .card-dark h4 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,.65); }

/* ── Stats Bar ── */
.stats-bar {
    background: var(--green-dark);
    padding-block: 2.5rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: var(--white); margin-bottom: .25rem; }
.stat-item span { color: var(--green-accent); font-size: .85rem; font-weight: 600; letter-spacing: .06em; }

/* ── Feature List ── */
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(27,67,50,.12);
    color: var(--green-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}
.feature-text h4 { margin-bottom: .2rem; }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin-block: 2.5rem; }
.divider-dark { border-top-color: rgba(255,255,255,.1); }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--charcoal);
}
.form-control {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ── Page Banner ── */
.page-banner {
    background: linear-gradient(120deg, var(--green-dark) 0%, var(--charcoal) 100%);
    padding-block: 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 28px,
        rgba(255,255,255,.02) 28px,
        rgba(255,255,255,.02) 29px
    );
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); margin-bottom: .5rem; }
.page-banner p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--green-accent); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
th, td {
    padding: .85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    background: var(--charcoal);
    color: var(--white);
    font-weight: 600;
}
tr:hover { background: rgba(27,67,50,.04); }

/* ── Footer ── */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,.7);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4 {
    color: var(--white);
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--green-mid);
    display: inline-block;
}
.footer-col p { font-size: .9rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}
.footer-col ul li a:hover { color: var(--green-accent); padding-left: 4px; }
.footer-logos {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1.1rem;
}
.footer-logos img { height: 38px; width: auto; border-radius: 4px; filter: brightness(.85); }
.footer-logos .f-divider {
    width: 1px; height: 30px;
    background: rgba(255,255,255,.2);
}

.contact-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .9rem;
    font-size: .9rem;
}
.contact-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    margin-top: .05rem;
}

.footer-bottom {
    padding-block: 1.25rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--green-accent); }

/* ── Alert / Notice ── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.alert-success {
    background: rgba(40,167,69,.1);
    border-color: #28a745;
    color: #155724;
}
.alert-error {
    background: rgba(220,53,69,.08);
    border-color: #dc3545;
    color: #721c24;
}

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: .25rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-green { background: rgba(27,67,50,.12); color: var(--green-dark); }
.badge-dark  { background: var(--charcoal); color: var(--white); }

/* ======================================================
   Flexbox & Grid Utilities
   ====================================================== */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center{ align-items: center; }
.items-end   { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.flex-1  { flex: 1; }
.flex-auto { flex: 0 0 auto; }

.grid        { display: grid; }
.grid-2      { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto   { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

/* Spacing */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.py-1  { padding-block: .5rem; }
.py-2  { padding-block: 1rem; }
.py-3  { padding-block: 1.5rem; }
.py-4  { padding-block: 2rem; }
.px-2  { padding-inline: 1rem; }
.px-3  { padding-inline: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-white  { color: var(--white); }
.text-green  { color: var(--green-light); }
.text-muted  { color: var(--charcoal-light); }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Display */
.d-none   { display: none; }
.d-block  { display: block; }
.w-full   { width: 100%; }

/* ======================================================
   Responsive Breakpoints
   ====================================================== */

/* Tablet – 1024px */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4      { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet – 768px */
@media (max-width: 768px) {
    :root { --nav-height: 60px; }

    .hamburger { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(var(--nav-height) + 100%);
        left: 0; right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--charcoal-mid);
        padding: 1rem;
        gap: .25rem;
        box-shadow: var(--shadow-lg);
        border-top: 2px solid var(--green-dark);
    }
    .nav-bar { position: relative; }
    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu li a { padding: .7rem 1rem; border-radius: var(--radius); }
    .nav-cta { width: 100%; margin-left: 0; margin-top: .5rem; }
    .nav-cta .btn { width: 100%; justify-content: center; }

    .logo-bar .tagline { display: none; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero { min-height: 400px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile – 480px */
@media (max-width: 480px) {
    .logo-divider { display: none; }
    .logo-item:last-of-type { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
}
