/*
Theme Name: Castinel Theme
Theme URI: https://castinel.org
Author: Castinel
Author URI: https://castinel.org
Description: Custom business theme for Castinel based on the Castinel Logistics service style.
Version: 1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: castinel-theme
*/

:root {
    --background: #ffffff;
    --surface: #ffffff;
    --text: #111111;
    --muted: #555555;
    --brand: #d49b07;
    --accent: #c39706;
    --border: #e6d7a2;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0.4rem;
    max-width: 760px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
    max-width: 200px;
}

.site-logo-img-wrapper {
    max-width: 200px;
    margin: 0;
    flex-shrink: 0;
}

.site-logo-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75px;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    flex-shrink: 0;
}

.site-title a {
    color: #111111;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.menu-toggle {
    display: none;
}

.site-navigation a {
    color: #111111;
    font-weight: 600;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.hero {
    padding: 4rem 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(15,75,110,.08) 0%, rgba(247,249,251,1) 100%);
}

.hero .wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.75rem, 3.5vw, 4.25rem);
    line-height: 1.05;
}

.hero p {
    max-width: 42rem;
    margin: 0 0 1.75rem;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button, .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button {
    background: var(--brand);
    color: white;
    border: none;
}

.button-secondary {
    background: rgba(255, 159, 10, 0.12);
    color: var(--brand);
    border: 1px solid transparent;
}

.button:hover, .button-secondary:hover {
    transform: translateY(-1px);
}

.hero-visual {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 4rem 1.5rem;
}

.section:nth-of-type(even) {
    background: #fff;
}

.section .wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    margin-bottom: 2rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: 2.5rem;
}

.section-heading p {
    margin: .75rem auto 0;
    max-width: 40rem;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
}

.card p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.site-footer {
    padding: 2rem 1.5rem;
    background: #1a1a1a;
    color: #f8fafc;
}

.site-footer .wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-logo-section {
    flex: 0 0 auto;
}

.footer-logo-wrapper {
    max-width: 200px;
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.footer-info {
    flex: 1 1 300px;
}

.footer-links {
    flex: 0 0 auto;
}

.site-footer a {
    color: #d49b07;
}

.site-footer a:hover {
    color: #e6b819;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.75rem, 3.5vw, 4.25rem);
    margin-bottom: 1rem;
}

.hero-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 75, 110, 0.12), rgba(245, 158, 11, 0.14));
    color: var(--brand);
    box-shadow: var(--shadow);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 700;
}

.hero-details {
    margin-top: 1.5rem;
    color: var(--muted);
}

.section-split {
    display: grid;
    gap: 2rem;
}

.section-split .split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.bg-soft {
    background: #f8fafc;
}

.values-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.values-list .card {
    padding: 2rem;
    text-align: center;
}

.cta-panel {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 75, 110, 0.08), #ffffff);
    border: 1px solid var(--border);
}

.testimonials {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card strong {
    margin-top: 1.5rem;
    display: block;
}

.testimonial-card span {
    display: block;
    color: var(--muted);
    margin-top: 0.25rem;
}

.contact-summary {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(15, 75, 110, 0.04);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.contact-summary h2 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }
    .site-navigation {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header .wrap,
    .hero .wrap,
    .section .wrap,
    .site-footer .wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
