/* ============================================
   Freom — freom.com.au
   Static site styles, 2026 rebuild
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:     #0f1a2e;
    --navy-mid: #1a2744;
    --navy-light:#243352;
    --charcoal: #1e1e2a;
    --teal:     #2ec4a0;
    --teal-dim: #239b7e;
    --slate:    #8892a4;
    --silver:   #c8cdd6;
    --off-white:#f0f2f5;
    --white:    #ffffff;
    --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:     'JetBrains Mono', 'Fira Code', monospace;
    --max-w:    1140px;
    --radius:   8px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--silver);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }

h1, h2, h3, h4 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .5em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; }

p + p { margin-top: 1em; }

/* --- Utility --- */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-teal  { color: var(--teal); }
.text-slate { color: var(--slate); }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all .25s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--teal);
    color: var(--navy);
}
.btn-primary:hover {
    background: var(--white);
    color: var(--navy);
}
.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--navy);
}

.section       { padding: 100px 0; }
.section-alt   { background: var(--navy-mid); }
.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 26, 46, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo img {
    height: 40px;
    width: 40px;
    display: block;
    border-radius: 8px;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-text .accent { color: var(--teal); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}
.nav-links a {
    color: var(--silver);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .5px;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--silver);
    margin: 6px 0;
    transition: all .3s;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 30%, rgba(46,196,160,.07) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(46,196,160,.04) 0%, transparent 40%),
        var(--navy);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(46,196,160,.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 40%, black 20%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(46,196,160,.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content h1 .line-accent {
    display: block;
    color: var(--teal);
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--slate);
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Stats Bar --- */
.stats-bar {
    background: var(--navy-mid);
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: .85rem;
    color: var(--slate);
    letter-spacing: .5px;
}

/* --- Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.card {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 36px 30px;
    transition: transform .25s, border-color .25s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(46,196,160,.08);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(46,196,160,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--teal);
}
.card h3 { font-size: 1.15rem; }
.card p  { font-size: .95rem; color: var(--slate); margin-top: 10px; }

/* --- Service Blocks (services page) --- */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse .service-text { order: 2; }
.service-block.reverse .service-visual { order: 1; }
.service-text h2 { margin-bottom: 16px; }
.service-text p  { margin-bottom: 16px; }
.service-text ul {
    list-style: none;
    margin-top: 20px;
}
.service-text ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: .95rem;
}
.service-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}
.service-visual {
    background:
        radial-gradient(circle at 50% 50%, rgba(46,196,160,.04) 0%, transparent 60%),
        var(--navy-mid);
    border: 1px solid rgba(46,196,160,.1);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(46,196,160,.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .6;
}
.service-visual svg { position: relative; z-index: 1; }

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text h2  { margin-bottom: 20px; }
.about-text p   { margin-bottom: 16px; }
.about-sidebar {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 36px;
}
.about-sidebar h3 { margin-bottom: 16px; }
.timeline-item {
    padding: 16px 0 16px 24px;
    border-left: 2px solid rgba(255,255,255,.08);
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 22px;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
}
.timeline-year {
    font-size: .8rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
}
.timeline-desc {
    font-size: .9rem;
    color: var(--slate);
    margin-top: 4px;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h2 { margin-bottom: 20px; }
.contact-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.contact-detail .detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(46,196,160,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal);
    font-size: 1.1rem;
}
.contact-detail .detail-text strong {
    display: block;
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 2px;
}
.contact-detail .detail-text span {
    font-size: .9rem;
    color: var(--slate);
}
.contact-form {
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 36px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--silver);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font);
    font-size: .95rem;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Page Header (interior pages) --- */
.page-header {
    padding: 150px 0 60px;
    background:
        radial-gradient(circle at 80% 50%, rgba(46,196,160,.05) 0%, transparent 50%),
        var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.04);
    position: relative;
}
.page-header h1 {
    margin-bottom: 12px;
}
.page-header p {
    font-size: 1.1rem;
    color: var(--slate);
    max-width: 600px;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(255,255,255,.04);
    padding: 48px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand .logo img { height: 32px; width: 32px; }
.footer-brand .logo-text { font-size: 1.3rem; letter-spacing: 2px; }
.footer-brand p {
    font-size: .9rem;
    margin-top: 12px;
    color: var(--slate);
    max-width: 320px;
}
.footer-col h4 {
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    color: var(--silver);
    font-size: .9rem;
}
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: var(--slate);
    gap: 16px;
    flex-wrap: wrap;
}

/* --- CTA Banner --- */
.cta-banner {
    background:
        radial-gradient(circle at 30% 50%, rgba(46,196,160,.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    border: 1px solid rgba(46,196,160,.15);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    margin: 0 auto;
    max-width: var(--max-w);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(46,196,160,.08);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p  { margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* --- Mobile --- */
@media (max-width: 900px) {
    .service-block,
    .about-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .service-block.reverse .service-text { order: 1; }
    .service-block.reverse .service-visual { order: 2; }
    .service-text { order: 1; }
    .service-visual { order: 2; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        z-index: 99;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,.04);
    }
    .nav-links a::after { display: none; }

    .logo-text { font-size: 1.3rem; letter-spacing: 2px; }
    .logo img { height: 34px; width: 34px; }
    .logo { gap: 10px; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero::after { display: none; }
    .section { padding: 64px 0; }
    .page-header { padding: 120px 0 48px; }
    .service-visual { min-height: 220px; padding: 30px; }
    .service-visual svg { width: 160px; height: 160px; }
    .service-block { padding: 48px 0; }
    .cta-banner { padding: 40px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 400px) {
    .logo-text { font-size: 1.1rem; letter-spacing: 1.5px; }
    .logo img { height: 30px; width: 30px; }
    .stat-number { font-size: 1.8rem; }
    .container { padding: 0 16px; }
}
