/* ============================================================
   KINCARDINE.COM — Lake Huron's Scottish Jewel
   Scottish heritage meets lakeshore pride
   ============================================================ */

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

:root {
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --accent: #c62828;
    --gold: #f9a825;
    --dark: #1a1a2e;
    --light-bg: #e8eaf6;
    --text: #263238;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --shadow: 0 2px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-narrow { width: 90%; max-width: 800px; margin: 0 auto; padding: 0 1rem; }

/* ============================================================
   TARTAN ACCENT BAR — thin stripe across the top
   ============================================================ */
body::before {
    content: '';
    display: block;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0, var(--primary) 20px,
        var(--accent) 20px, var(--accent) 40px,
        var(--gold) 40px, var(--gold) 50px,
        var(--primary-dark) 50px, var(--primary-dark) 70px
    );
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
}
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; color: var(--dark); }
.logo-tagline { display: block; font-family: var(--font-body); font-size: 0.65rem; font-weight: 400; color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; }

/* Nav */
.main-nav ul { list-style: none; display: flex; gap: 0.15rem; flex-wrap: wrap; align-items: center; }
.main-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--light-bg);
    color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
}
@media (max-width: 1024px) {
    .nav-toggle { display: block; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        padding: 1rem 0;
        border-top: 2px solid var(--light-bg);
        margin-top: 0.5rem;
    }
    .main-nav.open ul { display: flex; }
    .main-nav a { padding: 0.6rem 1rem; }
    .header-inner { position: relative; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.45) 0%, rgba(13,71,161,0.55) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem;
    max-width: 800px;
}
.hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    text-shadow: 0 3px 12px rgba(0,0,0,0.35);
    margin-bottom: 0.5rem;
}
.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-small { min-height: 300px; }
.hero-small h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #b71c1c; color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #f57f17; color: var(--white); transform: translateY(-2px); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 4rem 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-accent { background: var(--primary); color: var(--white); }
.section-accent h2, .section-accent h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { position: relative; display: inline-block; }
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}
.section-header p { color: var(--gray-600); max-width: 600px; margin: 0.5rem auto 0; font-size: 1.05rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
    display: grid;
    gap: 1.5rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card-body p { color: var(--gray-600); font-size: 0.95rem; }
.card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.tag-blue { background: #e3f2fd; color: var(--primary); }
.tag-red { background: #ffebee; color: var(--accent); }
.tag-gold { background: #fff8e1; color: #f57f17; }
.tag-green { background: #e8f5e9; color: #2e7d32; }

/* ============================================================
   FEATURE BLOCKS
   ============================================================ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.feature-img img { width: 100%; height: 350px; object-fit: cover; }
.feature-text h3 { color: var(--primary-dark); }
@media (max-width: 768px) {
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ============================================================
   HIGHLIGHT STRIP (icon cards)
   ============================================================ */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.highlight-item {
    padding: 2rem 1.2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.highlight-item:hover { transform: translateY(-4px); }
.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}
.highlight-item h4 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.highlight-item p { font-size: 0.9rem; color: var(--gray-600); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
    padding: 3rem 0;
    line-height: 1.8;
}
.page-content h2 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}
.page-content h3 { color: var(--accent); margin-top: 1.5rem; }
.page-content ul, .page-content ol {
    margin: 1rem 0 1rem 1.5rem;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-600);
}
.page-content img.inline-img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

/* ============================================================
   INFO BOXES / CALLOUTS
   ============================================================ */
.info-box {
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}
.info-box-blue { background: #e3f2fd; border-left: 4px solid var(--primary); }
.info-box-red { background: #ffebee; border-left: 4px solid var(--accent); }
.info-box-gold { background: #fff8e1; border-left: 4px solid var(--gold); }
.info-box h4 { margin-bottom: 0.3rem; }

/* ============================================================
   TABLES
   ============================================================ */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.styled-table thead { background: var(--primary); color: var(--white); }
.styled-table th, .styled-table td { padding: 0.8rem 1.2rem; text-align: left; }
.styled-table tbody tr { border-bottom: 1px solid var(--gray-200); }
.styled-table tbody tr:nth-child(even) { background: var(--gray-100); }
.styled-table tbody tr:hover { background: var(--light-bg); }

/* ============================================================
   LISTING / DIRECTORY ITEMS
   ============================================================ */
.listing-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    transition: box-shadow var(--transition);
}
.listing-item:hover { box-shadow: var(--shadow-lg); }
.listing-img {
    width: 160px;
    min-height: 120px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}
.listing-body h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.listing-body p { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 0.4rem; }
.listing-meta { font-size: 0.82rem; color: var(--primary); font-weight: 500; }
@media (max-width: 600px) {
    .listing-item { flex-direction: column; }
    .listing-img { width: 100%; height: 180px; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: 0;
    left: 0;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold); }
.footer-tartan {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0, var(--accent) 20px,
        var(--primary) 20px, var(--primary) 40px,
        var(--gold) 40px, var(--gold) 50px,
        var(--primary-dark) 50px, var(--primary-dark) 70px
    );
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* Scottish thistle divider */
.thistle-divider {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Two-col layout */
.two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 100px;
}
.sidebar-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}
.sidebar-box h4 { color: var(--primary-dark); margin-bottom: 0.8rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { margin-bottom: 0.4rem; }
.sidebar-box a { font-size: 0.92rem; }
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .hero { min-height: 400px; }
    .hero-small { min-height: 220px; }
    .section { padding: 2.5rem 0; }
    .card-img { height: 180px; }
    .highlights { grid-template-columns: 1fr 1fr; }
}
