﻿/*
Theme Name: Teak Titan Fencing Fresh Install v171
Theme URI: https://example.com/teak-titan-fencing
Description: A custom theme for Teak Titan Fencing.
Author: Frank
Author URI: https://yourwebsite.example
Version: 1.7.1
Text Domain: teak-titan-fencing
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --background: #f3ede4;
    --surface: rgba(255, 251, 246, 0.82);
    --surface-strong: #fffbf6;
    --surface-border: rgba(76, 52, 31, 0.1);
    --text-main: #1f1712;
    --text-soft: #685a4d;
    --accent: #93633b;
    --accent-deep: #5e3e26;
    --accent-light: #dbc0a1;
    --shadow-lg: 0 30px 72px rgba(52, 35, 20, 0.1);
    --shadow-md: 0 18px 40px rgba(52, 35, 20, 0.08);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 32%),
        linear-gradient(180deg, #f7f2ea 0%, #eee4d7 100%);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

p,
ul {
    margin: 0;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(247, 241, 233, 0.84);
    border-bottom: 1px solid rgba(76, 52, 31, 0.08);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.site-brand__mark {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    padding: 7px;
    background: rgba(255, 250, 243, 0.82);
    border: 1px solid rgba(76, 52, 31, 0.08);
    box-shadow: var(--shadow-md);
}

.site-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-brand__name,
.footer-panel h2,
.section-surface h1,
.section-surface h2,
.section-surface h3,
.product-card h2,
.product-card h3 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.site-brand__name {
    font-size: 1.8rem;
    font-weight: 700;
}

.site-brand__tagline {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu,
.footer-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin: 0;
}

.menu a,
.footer-menu a {
    text-decoration: none;
    color: var(--text-main);
}

.menu a {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.menu a:hover,
.menu a:focus-visible,
.footer-menu a:hover,
.footer-menu a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
    color: var(--accent-deep);
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(76, 52, 31, 0.15);
    background: rgba(255, 250, 243, 0.9);
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #9a6840 0%, #5b3a22 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(58, 34, 18, 0.16);
}

.button--secondary,
.button--ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(88, 59, 35, 0.18);
    box-shadow: none;
}

.site-main {
    padding: 36px 0 88px;
}

.home-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.home-content,
.page-stack {
    display: grid;
    gap: 24px;
}

.home-logo-rail {
    position: sticky;
    top: 122px;
}

.section-surface {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: 42px;
    box-shadow: var(--shadow-lg);
}

.section-surface::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(219, 192, 161, 0.22), transparent 72%);
    pointer-events: none;
}

.hero-panel h1,
.page-hero h1,
.generic-entry h1 {
    font-size: clamp(3.1rem, 6vw, 5.5rem);
    margin: 0 0 18px;
}

.section-surface h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 14px;
}

.section-surface h3,
.product-card h2,
.product-card h3 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lead {
    max-width: 58ch;
    font-size: 1.05rem;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.stat-row,
.section-grid,
.split-panel,
.showcase-grid,
.product-grid,
.contact-layout,
.field-grid,
.footer-grid,
.product-detail-grid {
    display: grid;
    gap: 20px;
}

.stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.stat-card,
.info-card,
.detail-card,
.contact-card {
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(76, 52, 31, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.stat-card strong,
.detail-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.stat-card span,
.detail-card span,
.info-card p,
.product-card p,
.footer-panel p,
.contact-card p,
.entry-content,
.feature-list li {
    color: var(--text-soft);
}

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

.feature-list {
    display: grid;
    gap: 12px;
    padding-left: 18px;
    margin: 0;
}

.feature-list li::marker {
    color: var(--accent);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.text-link {
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 0.18em;
}

.logo-card {
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, rgba(41, 27, 19, 0.96), rgba(88, 59, 35, 0.96));
    color: #f8f1e5;
    border-radius: 36px;
    padding: 28px;
    min-height: 420px;
    box-shadow: var(--shadow-lg);
}

.logo-card .eyebrow,
.logo-card p {
    color: rgba(248, 241, 229, 0.84);
}

.logo-card--minimal {
    min-height: 320px;
    place-items: center;
    padding: 32px 24px;
}

.home-floating-logo {
    width: min(100%, 280px);
    margin: auto;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.18));
}

.callout-panel {
    background: linear-gradient(135deg, rgba(51, 34, 22, 0.97), rgba(118, 79, 48, 0.94));
    color: #fbf7f1;
}

.callout-panel .eyebrow,
.callout-panel p,
.callout-panel h2 {
    color: inherit;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-grid {
    grid-template-columns: 1.25fr 0.85fr;
}

.showcase-card,
.product-visual-band__image {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(220, 195, 165, 0.28), rgba(255, 250, 243, 0.92));
    min-height: 280px;
}

.showcase-card--large {
    min-height: 560px;
}

.showcase-card__image,
.product-visual-band__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card {
    overflow: hidden;
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(76, 52, 31, 0.09);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(220, 195, 165, 0.3), rgba(255, 250, 243, 0.86));
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.product-card__meta,
.product-price {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.product-card--empty {
    grid-column: 1 / -1;
}

.split-panel,
.contact-layout,
.product-detail-grid,
.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-visual-band {
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
}

.product-visual-band__copy {
    display: grid;
    gap: 14px;
}

.installation-standard {
    display: grid;
    gap: 28px;
}

.installation-standard__heading {
    align-items: start;
}

.installation-standard__heading p:last-child {
    max-width: 560px;
    margin: 0;
    color: var(--text-soft);
}

.installation-standard__grid {
    gap: 24px;
}

.installation-standard__closing {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.detail-stack,
.contact-sidebar {
    display: grid;
    gap: 20px;
}

.contact-layout {
    align-items: start;
}

.quote-form {
    display: grid;
    gap: 24px;
}

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

.field-grid__full {
    grid-column: 1 / -1;
}

.quote-form label {
    display: grid;
    gap: 8px;
}

.quote-form label span {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    border: 1px solid rgba(76, 52, 31, 0.12);
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
    color: var(--text-main);
}

.quote-form textarea {
    resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.nav-toggle:focus,
.button:focus {
    outline: 2px solid rgba(143, 99, 59, 0.36);
    outline-offset: 3px;
}

.form-notice {
    margin-bottom: 20px;
    border-radius: 18px;
    padding: 16px 18px;
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.form-notice__title {
    font-size: 1rem;
    color: inherit;
}

.form-notice--success {
    background: rgba(103, 146, 104, 0.16);
    color: #355438;
}

.form-notice--error {
    background: rgba(154, 81, 64, 0.14);
    color: #7f3f2f;
}

.product-detail-media,
.product-detail-placeholder {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(220, 195, 165, 0.4), rgba(255, 250, 243, 0.92));
}

.product-detail-image,
.product-detail-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-placeholder {
    display: grid;
    place-items: center;
    min-height: 460px;
    color: var(--accent-deep);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-content > * + * {
    margin-top: 16px;
}

.site-footer {
    padding: 36px 0 28px;
    background: #201812;
    color: rgba(248, 241, 229, 0.84);
}

.footer-grid {
    grid-template-columns: 1.15fr 0.75fr 1fr;
    gap: 26px;
    align-items: start;
}

.footer-panel {
    display: grid;
    gap: 14px;
}

.site-footer a,
.site-footer .footer-menu a {
    color: #fff4e7;
}

.site-footer .footer-panel p,
.site-footer .footer-bottom p {
    color: rgba(248, 241, 229, 0.8);
}

.footer-panel h2 {
    font-size: 2.6rem;
    margin: 0;
    color: #fff4e7;
}

.footer-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.footer-menu {
    display: grid;
    gap: 10px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(248, 241, 229, 0.12);
    text-align: center;
}

@media (max-width: 1080px) {
    .home-shell,
    .product-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-logo-rail {
        position: static;
    }

    .logo-card {
        min-height: auto;
    }

    .showcase-grid,
    .product-visual-band {
        grid-template-columns: 1fr;
    }

    .showcase-card--large {
        min-height: 420px;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        border-radius: 26px;
        background: rgba(255, 250, 243, 0.97);
        border: 1px solid rgba(88, 59, 35, 0.12);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.is-open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-cta {
        width: 100%;
    }

    .site-brand__tagline {
        display: none;
    }

    .stat-row,
    .section-grid,
    .split-panel,
    .contact-layout,
    .field-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .site-header__inner {
        gap: 14px;
    }

    .site-brand__mark {
        width: 66px;
        height: 66px;
    }

    .site-brand__name {
        font-size: 1.5rem;
    }

    .section-surface {
        padding: 28px;
        border-radius: 22px;
    }

    .hero-panel h1,
    .page-hero h1,
    .generic-entry h1 {
        font-size: clamp(2.6rem, 14vw, 4.1rem);
    }

    .section-surface h2 {
        font-size: clamp(1.85rem, 9vw, 2.7rem);
    }
}

