/*
South Seas Design/Build™
Main Website Stylesheet
South Seas Design/Build Web 1.1
Developed by South Seas Tech™ · Developer: Grant Abbott
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }

:root {
    --basalt: #1d1b19;
    --charcoal: #2a2724;
    --cream: #efe4d2;
    --sand: #cdbfa8;
    --muted: #b9ac98;
    --ink: #2b2420;
    --copper: #c8843c;
    --copper-dark: #9c6127;
    --sea: #7fa6a3;
    --line: rgba(239, 228, 210, .16);
    --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --timber: url("../images/timber-planks.jpg");
    --boards: url("../images/light-planks.jpg");
}

html { scroll-behavior: smooth; }

body {
    background: var(--basalt) url("../images/basalt.jpg") repeat;
    color: var(--cream);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: .005em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .45rem; }
p { margin-bottom: 1rem; }

a { color: var(--copper); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cream); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

.eyebrow {
    font-family: var(--display);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: .7rem;
}

.wrap { width: min(1140px, 100% - 3rem); margin: 0 auto; }

/* Header: a band of weathered planks */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(rgba(20, 17, 14, .55), rgba(20, 17, 14, .7)), var(--timber) center / cover;
    border-bottom: 4px solid var(--copper-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--cream); }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--display); font-size: .72rem; letter-spacing: .32em; color: var(--sand); }
.brand-text strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; }
.brand-text strong span { color: var(--copper); }

.site-nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.site-nav a {
    color: var(--cream);
    font-weight: 600;
    font-size: .93rem;
    padding: .45rem .62rem;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.site-nav a:hover { background: rgba(200, 132, 60, .22); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--copper); color: var(--basalt); text-shadow: none; }

.nav-toggle { display: none; background: rgba(0, 0, 0, .35); border: 1px solid var(--sand); color: var(--cream); border-radius: 4px; padding: .45rem .8rem; font: inherit; font-weight: 600; cursor: pointer; }

main { flex: 1; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: .8rem 1.4rem;
    border-radius: 4px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .03em;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--copper); color: var(--basalt); box-shadow: 0 3px 0 var(--copper-dark); }
.btn-primary:hover { background: #d9964c; color: var(--basalt); transform: translateY(-1px); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 2px var(--sand); }
.btn-ghost:hover { background: rgba(239, 228, 210, .12); color: #fff; }
.btn-dark { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Blueprint grid overlay */
.blueprint {
    background-image:
        linear-gradient(rgba(127, 166, 163, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 166, 163, .16) 1px, transparent 1px),
        linear-gradient(rgba(127, 166, 163, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 166, 163, .07) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(100deg, rgba(20, 17, 14, .86) 0%, rgba(20, 17, 14, .55) 55%, rgba(20, 17, 14, .2) 100%), var(--timber) center / cover;
    border-bottom: 10px solid #3b2f25;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .4);
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero .inner { padding: 5.5rem 0 5rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero p.lead { font-size: 1.2rem; color: var(--sand); max-width: 36rem; margin-top: 1.1rem; }
.hero-mark { justify-self: center; width: min(300px, 100%); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }

.page-hero {
    background: linear-gradient(100deg, rgba(20, 17, 14, .86), rgba(20, 17, 14, .5)), var(--timber) center / cover;
    border-bottom: 8px solid #3b2f25;
}
.page-hero .inner { padding: 4rem 0 3rem; }
.page-hero p.lead { font-size: 1.15rem; color: var(--sand); max-width: 46rem; margin-top: .9rem; }

/* Log beam divider */
.beam {
    height: 16px;
    background: linear-gradient(#6b5440, #4a3a2c 45%, #3a2d22 55%, #5a4634);
    border-top: 1px solid #7b6450;
    border-bottom: 1px solid #241b14;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}

/* Sections */
.section { padding: 4rem 0; }
.section-head { max-width: 48rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

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

/* Board cards: light planks under a cream wash */
.board {
    color: var(--ink);
    background: linear-gradient(rgba(239, 228, 210, .9), rgba(239, 228, 210, .9)), var(--boards) center / cover;
    border-radius: 6px;
    padding: 1.6rem 1.5rem 1.5rem;
    border-top: 6px solid var(--copper);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.board h3 { color: #3a2a1d; }
.board p { color: #4a3f37; margin-bottom: 0; }
.board ul { color: #4a3f37; padding-left: 1.15rem; margin-top: .6rem; }
.board li { margin-bottom: .3rem; }
.board .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px; background: #3a2a1d; margin-bottom: .9rem; }
.board .icon svg { width: 26px; height: 26px; stroke: var(--copper); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.icon-chip { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 6px; background: #3a2a1d; margin-bottom: 1rem; box-shadow: inset 0 0 0 1px rgba(200, 132, 60, .4); }
.icon-chip svg { width: 26px; height: 26px; stroke: var(--copper); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center; }
.plan-frame {
    background: #24211e;
    border: 2px solid #4a3f35;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.checks { list-style: none; margin-top: 1rem; }
.checks li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; color: var(--sand); }
.checks li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 12px; height: 12px; background: var(--copper); transform: rotate(45deg); }

.band {
    border-radius: 8px;
    padding: 2.6rem;
    background: linear-gradient(110deg, rgba(20, 17, 14, .9), rgba(20, 17, 14, .7)), var(--timber) center / cover;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.band p { color: var(--sand); max-width: 46rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { border-left: 4px solid var(--copper); padding: .2rem 0 .2rem 1.1rem; }
.step::before { counter-increment: step; content: "Step " counter(step); display: block; font-family: var(--display); font-weight: 600; color: var(--copper); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin-bottom: .35rem; }
.step p { color: var(--muted); margin-bottom: 0; }

dl.details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin-top: 1.2rem; }
dl.details dt { color: var(--copper); font-family: var(--display); font-weight: 700; }
dl.details dd { color: var(--cream); }

.note { color: var(--muted); font-size: .95rem; }

.job { display: grid; gap: .3rem; }
.job .count { font-family: var(--display); color: var(--copper-dark); font-weight: 700; }

/* Footer: planks again */
.site-footer {
    margin-top: 3rem;
    background: linear-gradient(rgba(20, 17, 14, .78), rgba(20, 17, 14, .88)), var(--timber) center / cover;
    border-top: 4px solid var(--copper-dark);
    padding: 2rem 0;
    font-size: .92rem;
    color: var(--sand);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; align-items: center; }
.site-footer p { margin: 0; }
.license { color: var(--cream); font-weight: 600; }

/* Tablets */
@media (max-width: 920px) {
    .hero .inner, .feature { grid-template-columns: 1fr; }
    .hero-mark { width: min(200px, 60%); order: -1; justify-self: start; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) and (min-width: 661px) {
    .site-header .wrap { flex-wrap: wrap; justify-content: center; }
}

/* Phones */
@media (max-width: 660px) {
    body { font-size: 16px; }
    .wrap { width: min(1140px, 100% - 2rem); }
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: rgba(29, 27, 25, .98);
        border-bottom: 4px solid var(--copper-dark);
        padding: .6rem 1rem 1rem;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .7rem .8rem; }
    .brand-text strong { font-size: 1.05rem; }
    .grid-3, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
    .hero .inner { padding: 3rem 0 3.2rem; }
    .band { padding: 1.6rem; }
    .section { padding: 2.8rem 0; }
    dl.details { grid-template-columns: 1fr; gap: .1rem; }
    dl.details dd { margin-bottom: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

.credit { font-size: .72rem; opacity: .6; letter-spacing: .02em; }

/* Tighter spacing for a more professional look */
body { line-height: 1.55; }
p { margin-bottom: .7rem; }
h2 { margin-bottom: .7rem; }
.section { padding: 2.8rem 0; }
.page-hero { padding-top: 3rem; padding-bottom: 3.2rem; }
.hero { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.section-head { margin-bottom: 1.4rem; }
.card { padding: 1.25rem 1.35rem; }
.card li { margin-bottom: .15rem; }
.grid { gap: 1.1rem; }
.btn-row { margin-top: 1rem; }

/* Our faith */
.faith-inner { max-width: 860px; }
.faith-mission { font-size: 1.05rem; border-left: 3px solid currentColor; padding-left: 1rem; margin: 1rem 0 1.4rem; }
.faith-list { display: grid; gap: .8rem; margin-top: .6rem; }
.faith-list dt { font-weight: 700; }
.faith-list dd { margin: .1rem 0 0; opacity: .85; }
.faith-note { margin-top: 1.2rem; font-style: italic; opacity: .85; }
