/* ============================================
   TKFA — The Kingdom Family Arise
   Main Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Kurale&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --tkfa-primary: rgb(51, 65, 85);
    --tkfa-secondary: rgb(128, 130, 133);
    --tkfa-accent: rgb(212, 175, 55);
    --tkfa-bg-cream: rgb(246, 241, 231);
    --tkfa-bg-dark: rgb(28, 28, 28);
    --tkfa-white: rgb(255, 255, 255);
    --tkfa-black: rgb(0, 0, 0);
    --tkfa-text-dark: rgb(51, 55, 61);
    --tkfa-text-muted: rgb(63, 68, 75);
    --tkfa-link: rgb(4, 107, 210);
    --tkfa-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    --tkfa-radius: 3px;

    --tkfa-font-heading: 'Cinzel', serif;
    --tkfa-font-accent: 'Kurale', serif;
    --tkfa-font-body: 'Nunito', sans-serif;
}

/* --- Base Reset & Typography --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent horizontal scroll from 100vw elements */
}

body {
    font-family: var(--tkfa-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--tkfa-text-dark);
    background-color: var(--tkfa-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tkfa-font-heading);
    color: var(--tkfa-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 50px; }
h2 { font-size: 35px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    margin-bottom: 1rem;
    color: var(--tkfa-text-muted);
}

a {
    color: var(--tkfa-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tkfa-link);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Utility Classes --- */
.tagline {
    font-family: var(--tkfa-font-accent);
    font-size: 22px;
    color: var(--tkfa-accent);
    letter-spacing: 0.5px;
}

.section-label {
    font-family: var(--tkfa-font-heading);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tkfa-accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--tkfa-font-heading);
    font-size: 37px;
    font-weight: 700;
    color: var(--tkfa-primary);
    margin-bottom: 1.5rem;
}

.text-accent {
    color: var(--tkfa-accent);
}

.text-muted-custom {
    color: var(--tkfa-secondary);
}

/* --- Section Spacing --- */
.tkfa-section {
    padding: 80px 0;
}

.tkfa-section-sm {
    padding: 50px 0;
}

.tkfa-section-lg {
    padding: 120px 0;
}

/* --- Background Variants --- */
.bg-cream {
    background-color: var(--tkfa-bg-cream);
}

.bg-dark-custom {
    background-color: var(--tkfa-bg-dark);
    color: var(--tkfa-white);
}

.bg-dark-custom h1,
.bg-dark-custom h2,
.bg-dark-custom h3,
.bg-dark-custom h4,
.bg-dark-custom p {
    color: var(--tkfa-white);
}

.bg-dark-custom .text-muted-custom {
    color: var(--tkfa-secondary);
}

/* --- Header / Navbar --- */
.tkfa-navbar {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    z-index: 1000;
    /* Override Bootstrap .navbar defaults so custom centering works */
    justify-content: center;
    flex-wrap: nowrap;
}

.tkfa-navbar.scrolled {
    /* Solid background when scrolled (no transparency) */
    background-color: var(--tkfa-bg-dark);
    padding: 10px 0;
    box-shadow: var(--tkfa-shadow);
    /* ensure pseudo-element positioning works */
    position: fixed;
}

/* Fade effect under the smaller scrolled navbar so page content appears to fade away
   as it scrolls up beneath the bar. The gradient flows from navbar color to transparent. */
.tkfa-navbar.scrolled::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px; /* extends slightly below the bar */
    height: 18px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(28,28,28,1) 0%, rgba(28,28,28,0) 100%);
}

.tkfa-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-wrap: nowrap;
    padding: 0 30px;
}

.tkfa-nav-logo {
    display: flex;
    align-items: center;
    margin: 0 40px;
    flex-shrink: 0;
}

.tkfa-nav-logo img {
    max-height: 120px;
    transition: max-height 0.3s ease;
}

.tkfa-navbar.scrolled .tkfa-nav-logo img {
    max-height: 60px;
}

.tkfa-nav-links {
    display: flex;
    align-items: center;
    gap: 24px; /* increased gap to spread menu buttons */
    flex: 1; /* equal flex sizing so logo stays centered */
}

/* spacing around logo to push left/right groups outward */
.tkfa-nav-left {
    margin-right: 48px;
    justify-content: flex-end; /* push left-group links toward the logo */
}

.tkfa-nav-right {
    margin-left: 48px;
    justify-content: flex-start; /* push right-group links toward the logo */
}

.tkfa-navbar .nav-link {
    font-family: var(--tkfa-font-heading);
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 18px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tkfa-navbar .nav-link:hover,
.tkfa-navbar .nav-link.active {
    color: var(--tkfa-accent);
}

/* --- Hero Section --- */
.tkfa-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    /* align image to top so the hero shows the image start at the top of the page */
    background-position: top center;
    background-repeat: no-repeat;
    /* use scroll so the image aligns with the element rather than fixed viewport which can crop the top */
    background-attachment: scroll;
}

.tkfa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.tkfa-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.tkfa-hero .hero-line-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0.75rem;
}

.tkfa-hero .hero-line {
    display: block;
    flex: 0 1 120px;
    height: 1px;
    background-color: var(--tkfa-accent);
}

.tkfa-hero .hero-tagline {
    font-family: var(--tkfa-font-accent);
    font-size: 24px;
    font-style: italic;
    color: var(--tkfa-accent);
    letter-spacing: 3px;
    white-space: nowrap;
}

.tkfa-hero .hero-title {
    font-family: var(--tkfa-font-heading);
    font-size: 60px;
    font-weight: 700;
    color: var(--tkfa-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tkfa-hero .hero-subtitle {
    font-family: var(--tkfa-font-accent);
    font-size: 22px;
    font-style: italic;
    color: var(--tkfa-accent);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- Statement Banner --- */
.tkfa-statement {
    background-color: var(--tkfa-bg-dark);
    padding: 80px 0 60px;
    text-align: center;
}

.tkfa-statement h1 {
    /* Applied user-provided style blob converted to valid CSS */
    border-bottom-color: rgb(246, 241, 231);
    border-bottom-style: none;
    border-bottom-width: 0px;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
    border-left-color: rgb(246, 241, 231);
    border-left-style: none;
    border-left-width: 0px;
    border-right-color: rgb(246, 241, 231);
    border-right-style: none;
    border-right-width: 0px;
    border-top-color: rgb(246, 241, 231);
    border-top-style: none;
    border-top-width: 0px;
    box-sizing: border-box;
    clear: both;
    color: rgb(246, 241, 231);
    display: block;
    font-family: Cinzel, sans-serif;
    font-size: 68px;
    font-style: normal;
    font-weight: 700;
    height: 180px;
    line-height: 60px;
    /* center the heading block horizontally and keep vertical margins reset */
    margin: 0 auto;
    outline-color: rgb(246, 241, 231);
    outline-style: none;
    outline-width: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    text-align: center;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    unicode-bidi: isolate;
    vertical-align: baseline;
    max-width: 1200px;
    -webkit-font-smoothing: antialiased;
}

/* --- Vision / Mission Cards --- */
.tkfa-vision-mission {
    background-color: var(--tkfa-bg-dark);
    padding: 0 0 80px;
    position: relative;
}

.tkfa-vision-mission::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--tkfa-accent);
    margin: 0 auto 50px;
}

.tkfa-vision-mission .row {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1300px;
    margin: 0 auto;
}

.tkfa-vision-mission .row > [class*="col-"] {
    flex: 1 1 50%;
    max-width: 50%;
}

.tkfa-vision-mission .vm-card {
    padding: 40px;
    text-align: center;
}

.tkfa-vision-mission .vm-card h2 {
    font-size: 24px;
    color: var(--tkfa-accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.tkfa-vision-mission .vm-card p {
    font-family: Nunito, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 26.4px;
    color: rgb(246, 241, 231);
    text-align: center;
    margin: 0 0 10px;
    -webkit-font-smoothing: antialiased;
}

/* --- Service Cards --- */
.tkfa-service-cards {
    background-color: var(--tkfa-bg-dark);
    /* reduce space above cards to ~1 line (16px) */
    padding: 16px 0 80px;
}

.tkfa-service-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px; /* reduce gap so wider cards fit in one row */
    max-width: 2000px; /* keep large container */
    margin: 0 auto;
}

.tkfa-service-tile {
    /* Reduced card footprint while preserving internal proportions */
    flex: 0 0 360px; /* smaller base width */
    max-width: 320px; /* reduced max width */
    min-height: 300px; /* proportionally reduced height */
    background-color: #F6F1E7;
    border-radius: var(--tkfa-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* keep Read More buttons aligned horizontally */
    text-align: center;
    padding: 20px 14px; /* reduced inner padding to keep content ratio */
    box-sizing: border-box;
    color: var(--tkfa-black); /* ensure card text is black */
}

.tkfa-service-icon {
    width: 48px; /* scaled down from 60 */
    height: 48px; /* scaled down from 60 */
    margin-bottom: 10px;
}

.tkfa-service-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--tkfa-accent);
}

/* --- Center content from "Our Services" down to footer --- */
/* Keep section background full-width but constrain inner content to match the two large cards width */
.tkfa-service-grid,
.tkfa-services-detail .container,
.tkfa-contact .container,
.tkfa-footer .tkfa-footer-main,
.tkfa-gallery .gallery-grid {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.tkfa-service-tile .card-title {
    font-family: var(--tkfa-font-heading);
    font-size: 24px; /* scaled down title to match smaller card */
    font-weight: 700;
    color: var(--tkfa-black); /* black title text */
    margin-bottom: 0.25rem;
    white-space: normal; /* allow wrapping on smaller cards while preserving ratio */
}

.tkfa-service-tile .card-subtitle {
    font-family: var(--tkfa-font-body);
    font-size: 16px; /* scaled down subtitle */
    color: var(--tkfa-black); /* black subtitle text */
    margin-bottom: 0.6rem;
}

.tkfa-service-tile .card-link {
    display: inline-block;
    padding: 10px 14px; /* slightly smaller button */
    min-width: 110px; /* reduced min width */
    border: none;
    background: var(--tkfa-accent); /* match card icon color */
    color: var(--tkfa-black); /* button text must be black */
    font-family: var(--tkfa-font-heading);
    font-size: 13px; /* smaller button text */
    font-weight: 600; /* slightly thicker but not full bold */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.tkfa-service-tile .card-link:hover {
    background-color: var(--tkfa-bg-cream);
    color: var(--tkfa-bg-dark);
}

/* Center the "Our Services" and "Contact Us" headers */
.tkfa-service-cards .section-header,
.tkfa-services-detail .section-header,
.tkfa-contact .section-header {
    text-align: center;
}

.tkfa-service-cards .section-title,
.tkfa-services-detail .section-title,
.tkfa-contact .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

/* Remove small label above the cards and tighten header spacing for the cards section */
.tkfa-service-cards .section-label {
    display: none;
}

.tkfa-service-cards .section-header {
    margin-top: 0;
    margin-bottom: 16px; /* single line spacing */
}

/* Ensure the small label above the services title is centered */
.tkfa-services-detail .section-label,
.tkfa-contact .section-label {
    text-align: center;
}

/* --- Photo Showcase Grid 1 --- */
.tkfa-photo-showcase {
    border-top: 2px solid var(--tkfa-accent);
    border-bottom: 2px solid var(--tkfa-accent);
    background-color: var(--tkfa-bg-dark);
}

.tkfa-photo-showcase .tkfa-photo-row {
    display: flex;
}

.tkfa-photo-showcase .tkfa-photo-row-1 {
    border-bottom: 2px solid var(--tkfa-accent);
}

.tkfa-photo-showcase .tkfa-photo-panel {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-right: 2px solid var(--tkfa-accent);
}

.tkfa-photo-showcase .tkfa-photo-panel:last-child {
    border-right: none;
}

.tkfa-photo-showcase .tkfa-photo-panel-30 {
    width: 30%;
}

.tkfa-photo-showcase .tkfa-photo-panel-35 {
    width: 35%;
}

.tkfa-photo-showcase .tkfa-photo-panel-25 {
    width: 25%;
}

.tkfa-photo-showcase .tkfa-photo-panel-40 {
    width: 40%;
}

.tkfa-photo-showcase .tkfa-photo-panel-27 {
    width: 27%;
}

.tkfa-photo-showcase .tkfa-photo-panel-33 {
    width: 33%;
}

.tkfa-photo-showcase .tkfa-photo-panel-15 {
    width: 15%;
}

.tkfa-photo-showcase .tkfa-photo-panel-20 {
    width: 20%;
}

.tkfa-photo-showcase .tkfa-photo-panel-43 {
    width: 43%;
}

.tkfa-photo-showcase .tkfa-photo-panel-65 {
    width: 65%;
}

/* --- About Section --- */
.tkfa-about {
    padding: 140px 0;
    background-color: var(--tkfa-bg-dark);
}

.tkfa-about .section-label {
    color: var(--tkfa-accent);
}

.tkfa-about .section-title,
.tkfa-about h2 {
    color: var(--tkfa-white);
}

.tkfa-about .about-intro {
    max-width: 1300px;
    margin: 0 auto 60px;
    text-align: center;
}

.tkfa-about .about-intro p {
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
}

.tkfa-about .section-label {
    font-size: 24px;
}

.tkfa-about .section-title {
    font-size: 60px;
}

.tkfa-about .section-header {
    text-align: center;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.tkfa-about .section-title {
    margin-left: auto;
    margin-right: auto;
    /* keep the short tagline on a single line */
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.tkfa-about .tkfa-about-divider {
    width: 60px;
    height: 2px;
    background-color: var(--tkfa-accent);
    margin: 20px auto;
}

.tkfa-about .tkfa-about-image {
    max-width: 1300px;
    margin: 0 auto 40px;
}

.tkfa-about .tkfa-about-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.tkfa-about p,
.tkfa-about .about-intro p,
.tkfa-about .tkfa-team-member p {
    color: var(--tkfa-bg-cream);
}

.tkfa-about .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.tkfa-about .row > [class*="col-"] {
    flex: 1 1 0;
    max-width: 50%;
    padding: 0;
}

.tkfa-team-member {
    background-color: #F6F1E7;
    border-radius: var(--tkfa-radius);
    padding: 40px;
    height: 100%;
    text-align: center;
    color: var(--tkfa-black);
}

.tkfa-team-member h2 {
    font-size: 41px; /* slightly larger for better readability */
    margin-bottom: 0.6rem;
    color: var(--tkfa-black) !important;
}

.tkfa-team-member h3 {
    font-size: 34px; /* larger role/title text */
    font-weight: 300; /* slightly lighter for a less heavy appearance */
    color: var(--tkfa-black) !important;
    font-family: var(--tkfa-font-accent);
    margin-bottom: 12px;
    line-height: 1.1;
}

.tkfa-team-member p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--tkfa-black) !important;
    text-align: center;
}

/* --- Services Detail Section --- */
.tkfa-services-detail {
    padding: 150px 0;
    background-color: var(--tkfa-bg-dark);
}

.tkfa-services-detail .section-label {
    color: var(--tkfa-accent);
}

.tkfa-services-detail .section-title {
    color: var(--tkfa-bg-cream);
    font-size: 60px;
    line-height: 1;
}

.tkfa-services-divider {
    width: 60px;
    height: 2px;
    background-color: var(--tkfa-accent);
    margin: 20px auto;
}

/* Space below the small divider and add padding between service "cells" */
.tkfa-services-divider {
    margin-bottom: 30px; /* extra space below the line */
}

.tkfa-services-detail .tkfa-service-pair {
    margin-bottom: 20px; /* vertical gap between each pair (rows) */
}

.tkfa-services-detail .tkfa-service-pair .tkfa-service-content,
.tkfa-services-detail .tkfa-service-pair .tkfa-service-image {
    padding: 18px; /* inner padding for each cell */
    box-sizing: border-box;
}

/* Increase vertical spacing between inputs inside the contact form */
.tkfa-contact .mb-4 {
    margin-bottom: 20px;
}

/* Smaller primary send button used on contact form */
.tkfa-btn-send {
    display: inline-block;
    background-color: var(--tkfa-accent);
    color: var(--tkfa-black);
    font-family: var(--tkfa-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.tkfa-btn-send:hover {
    background-color: #c9a43a; /* slightly darker gold on hover */
}

.tkfa-services-divider-left {
    margin: 20px 0;
}

.tkfa-services-divider-full {
    width: 100%;
    margin: 2px 0;
}

/* Add spacing under the small left divider and the full-width divider */
.tkfa-services-divider-left {
    margin-bottom: 24px; /* space below the small yellow line under each title */
}

.tkfa-services-divider-full {
    margin-bottom: 28px; /* space below the full-width yellow separator */
}

.tkfa-service-pair {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.tkfa-service-pair-reverse {
    flex-direction: row-reverse;
}

.tkfa-service-content,
.tkfa-service-image {
    width: 50%;
}

.tkfa-service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tkfa-service-subtitle {
    font-family: var(--tkfa-font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    color: var(--tkfa-accent);
    margin-bottom: 10px;
}

.tkfa-service-title {
    font-family: var(--tkfa-font-heading);
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tkfa-bg-cream);
    margin-bottom: 0;
}

.tkfa-service-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tkfa-bg-cream);
    margin-bottom: 10px;
}

.tkfa-service-image {
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tkfa-service-content .service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tkfa-service-content .service-links a {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--tkfa-accent);
    color: var(--tkfa-bg-dark);
    font-family: var(--tkfa-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.tkfa-service-content .service-links a:hover {
    background-color: var(--tkfa-bg-cream);
    color: var(--tkfa-bg-dark);
}

/* --- Contact Section --- */
.tkfa-contact {
    padding: 150px 0;
    background-color: var(--tkfa-bg-dark);
}

.tkfa-contact .section-label {
    color: var(--tkfa-accent);
}

.tkfa-contact .section-title {
    color: var(--tkfa-bg-cream);
    font-size: 72px;
    line-height: 1;
}

/* Slightly larger section label for Contact */
.tkfa-contact .section-label {
    font-size: 20px;
    letter-spacing: 2px;
}

/* Gold divider placed on its own row beneath the contact links */
.tkfa-contact .tkfa-contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Align phone on the left and email to the right edge of the form/send button */
.tkfa-contact .tkfa-contact-links > .tkfa-contact-link-item:first-child {
    justify-self: start;
}
.tkfa-contact .tkfa-contact-links > .tkfa-contact-link-item:last-child {
    justify-self: end;
}

/* Full-width gold divider for the contact section placed after contact links */
.tkfa-contact::after {
    content: '';
    display: block;
    width: 100vw;
    height: 2px;
    background: var(--tkfa-accent);
    margin: 28px 0 0; /* space above divider */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Center the form and contact links within the section */
.tkfa-contact form,
.tkfa-contact .tkfa-contact-links {
    max-width: 800px; /* give more room so contact items don't wrap */
    margin-left: auto;
    margin-right: auto;
}

.tkfa-contact .form-control {
    border: 0;
    border-radius: 0;
    padding: 14px 18px;
    font-family: var(--tkfa-font-body);
    font-size: 15px;
    color: var(--tkfa-black);
    background-color: var(--tkfa-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tkfa-contact .form-control::placeholder {
    color: var(--tkfa-black);
    opacity: 1; /* ensure visible on white background */
}

.tkfa-contact .form-control:focus {
    border-color: transparent;
    box-shadow: none;
}

.tkfa-contact textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.tkfa-btn-send {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--tkfa-accent);
    color: var(--tkfa-bg-dark);
    border: none;
    border-radius: 0;
    font-family: var(--tkfa-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 36px; /* space below the send button */
}

.tkfa-btn-send:hover {
    background-color: var(--tkfa-bg-cream);
    color: var(--tkfa-bg-dark);
}

.tkfa-contact-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tkfa-contact-link-item {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tkfa-contact-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
}

.tkfa-contact-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--tkfa-accent);
}

.tkfa-contact-link-item a {
    color: var(--tkfa-bg-cream);
    font-size: 20px;
    line-height: 1.4;
    white-space: nowrap; /* prevent phone/email from wrapping */
}

.tkfa-contact-link-item a:hover {
    color: var(--tkfa-accent);
}

/* --- Footer --- */
.tkfa-footer {
    background-color: var(--tkfa-bg-dark);
    padding: 50px 0 30px;
    color: var(--tkfa-white);
}

.tkfa-footer .tkfa-footer-main {
    display: flex;
    align-items: center;
    justify-content: center; /* center all footer items so navs sit closer to logo */
    gap: 12px;
}

.tkfa-footer .tkfa-footer-nav {
    flex: 0 0 auto; /* shrink to content so navs move closer to logo */
}

.tkfa-footer .tkfa-footer-nav-left .nav,
.tkfa-footer .tkfa-footer-nav-right .nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

/* Center the left and right footer nav groups so links align toward the logo visually */
.tkfa-footer .tkfa-footer-nav-left .nav {
    justify-content: center;
}
.tkfa-footer .tkfa-footer-nav-right .nav {
    justify-content: center;
}

.tkfa-footer .footer-logo {
    flex: 0 0 auto;
    text-align: center;
}

.tkfa-footer .footer-logo img {
    max-height: 160px; /* doubled size */
    margin-bottom: 20px;
}

.tkfa-footer .nav-link {
    font-family: var(--tkfa-font-heading);
    font-size: 18px; /* ~3x larger */
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px; /* tighter padding to keep links closer to logo */
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 2px;
    display: inline-block;
    font-weight: 700; /* make links bold */
}

.tkfa-footer .nav-link:hover {
    background-color: var(--tkfa-accent);
    color: var(--tkfa-bg-dark);
}

@media (max-width: 991.98px) {
    .tkfa-footer .nav-link {
        font-size: 20px;
        padding: 6px 10px;
    }
}

/* Mobile-only footer logo — hidden on desktop */
.tkfa-footer .footer-logo-mobile {
    display: none;
}

.tkfa-footer .footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--tkfa-white);
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.tkfa-footer .footer-copyright a {
    color: var(--tkfa-accent);
}

/* --- Gallery --- */
.tkfa-gallery {
    padding: 40px 0 80px;
}

.tkfa-gallery-title {
    text-align: center;
    padding: 100px 0 40px;
    background-color: var(--tkfa-bg-dark);
    color: var(--tkfa-white);
}

.tkfa-gallery-title h1 {
    color: var(--tkfa-white);
    font-size: 37px;
}

.tkfa-gallery-title .tagline {
    color: var(--tkfa-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--tkfa-radius);
    cursor: pointer;
    aspect-ratio: 3 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* --- Lightbox Modal --- */
.tkfa-lightbox .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.tkfa-lightbox .lightbox-image {
    max-width: 85vw;
    max-height: 80vh;
    max-height: 80dvh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.tkfa-lightbox .lightbox-btn {
    position: absolute;
    top: 16px;
    z-index: 20;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.tkfa-lightbox .lightbox-btn:hover {
    color: var(--tkfa-accent);
    transform: scale(1.15);
}

.tkfa-lightbox .lightbox-close-btn {
    right: 20px;
    font-size: 38px;
    padding: 0 6px;
}

.tkfa-lightbox .lightbox-fullscreen-btn {
    right: 68px;
    padding: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkfa-lightbox .lightbox-fullscreen-btn::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-radius: 2px;
}

.tkfa-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 28px;
    width: 50px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.tkfa-lightbox .lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.6);
    color: var(--tkfa-white);
}

.tkfa-lightbox .lightbox-prev {
    left: 16px;
}

.tkfa-lightbox .lightbox-next {
    right: 16px;
}

.tkfa-lightbox .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 2px;
    user-select: none;
}

/* --- Alert / Feedback --- */
.tkfa-alert {
    border-radius: var(--tkfa-radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    font-size: 15px;
}

.tkfa-alert-success {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--tkfa-accent);
    color: var(--tkfa-text-dark);
}

.tkfa-alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* --- Validation --- */
.field-validation-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

/* --- Section Header Spacing --- */
.section-header {
    margin-bottom: 50px;
}

/* --- Gallery Page --- */
.tkfa-gallery-page {
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: var(--tkfa-bg-dark);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .tkfa-hero .hero-title {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .tkfa-hero .hero-tagline {
        font-size: 20px;
    }

    .tkfa-hero .hero-subtitle {
        font-size: 18px;
    }

    .tkfa-hero .hero-line {
        flex: 0 1 80px;
    }

    .tkfa-nav-container {
        padding: 0 15px;
    }

    .tkfa-nav-links {
        gap: 12px;
    }

    .tkfa-navbar .nav-link {
        padding: 8px 12px;
        letter-spacing: 1px;
        font-size: 14px;
    }

    .tkfa-nav-logo {
        margin: 0 16px;
    }

    .tkfa-nav-logo img {
        max-height: 80px;
    }

    .tkfa-statement h1 {
        font-size: 40px;
        height: auto;
        line-height: 1.3;
    }

    .section-title {
        font-size: 28px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

@media (max-width: 767.98px) {
    /* --- Mobile navbar: logo on top, all 4 links in one row below --- */
    .tkfa-navbar {
        flex-wrap: wrap !important;
    }

    .tkfa-nav-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px;
        padding: 0 10px;
    }

    /* Logo centered on its own row */
    .tkfa-nav-logo {
        order: 1 !important;
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .tkfa-nav-logo img {
        max-height: 50px;
    }

    .tkfa-navbar.scrolled .tkfa-nav-logo img {
        max-height: 36px;
    }

    /* Both link groups share the second row beneath the logo */
    .tkfa-nav-links.tkfa-nav-left {
        order: 2 !important;
        flex: 0 0 auto;
        margin: 0;
        gap: 8px;
        justify-content: center;
    }

    .tkfa-nav-links.tkfa-nav-right {
        order: 2 !important;
        flex: 0 0 auto;
        margin: 0;
        gap: 8px;
        justify-content: center;
    }

    .tkfa-navbar .nav-link {
        font-size: 11px;
        padding: 4px 8px;
        letter-spacing: 1px;
    }

    /* --- Statement banner --- */
    .tkfa-statement h1 {
        font-size: 24px;
        height: auto;
        line-height: 1.3;
        padding: 0 16px;
    }

    .tkfa-statement {
        padding: 40px 0 30px;
    }

    /* --- Photo showcase: stack panels vertically --- */
    .tkfa-photo-showcase .tkfa-photo-row {
        flex-direction: column;
    }

    .tkfa-photo-showcase .tkfa-photo-panel {
        width: 100% !important; /* override all percentage widths */
        min-height: 180px;
        border-right: none;
        border-bottom: 2px solid var(--tkfa-accent);
    }

    .tkfa-photo-showcase .tkfa-photo-panel:last-child {
        border-bottom: none;
    }

    .tkfa-photo-showcase .tkfa-photo-row-1 {
        border-bottom: none; /* panels now have their own borders */
    }

    /* --- Service cards --- */
    .tkfa-service-grid {
        flex-wrap: wrap;
        padding: 0 16px;
        gap: 10px;
    }

    .tkfa-service-tile {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
        min-height: 140px;
    }

    /* --- Services detail --- */
    .tkfa-services-detail {
        padding: 50px 0;
    }

    .tkfa-service-pair,
    .tkfa-service-pair-reverse {
        flex-direction: column;
        gap: 10px;
    }

    .tkfa-service-content,
    .tkfa-service-image {
        width: 100%;
    }

    .tkfa-service-title {
        font-size: 28px;
        margin-bottom: -15px;
    }

    .tkfa-service-subtitle {
        font-size: 16px;
        margin-bottom: 0;
    }

    .tkfa-service-image {
        min-height: 200px;
    }

    .tkfa-services-detail .section-title {
        font-size: 32px;
    }

    .tkfa-service-content .service-links a {
        padding: 12px 10px;
    }

    /* --- Contact --- */
    .tkfa-contact {
        padding: 50px 0;
    }

    .tkfa-contact .section-title {
        font-size: 32px;
    }

    .tkfa-contact .tkfa-contact-links {
        grid-template-columns: 1fr; /* stack phone and email vertically */
    }

    .tkfa-contact .tkfa-contact-links > .tkfa-contact-link-item:first-child,
    .tkfa-contact .tkfa-contact-links > .tkfa-contact-link-item:last-child {
        justify-self: center;
    }

    .tkfa-contact-links {
        gap: 10px;
    }

    .tkfa-contact-link-item {
        width: 100%;
        gap: 6px;
    }

    .tkfa-contact-icon {
        width: 16px;
        height: 16px;
    }

    .tkfa-contact-link-item a {
        font-size: 16px;
    }

    /* --- Hero --- */
    .tkfa-hero .hero-title {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .tkfa-hero .hero-tagline {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .tkfa-hero .hero-subtitle {
        font-size: 16px;
    }

    .tkfa-hero .hero-line {
        flex: 0 1 40px;
    }

    .tkfa-hero .hero-line-text {
        gap: 12px;
    }

    /* --- About --- */
    .tkfa-about {
        padding: 60px 0;
    }

    .tkfa-about .row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .tkfa-about .row > [class*="col-"] {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .tkfa-about .about-intro p {
        text-align: center;
    }

    .tkfa-about .section-title {
        font-size: 32px;
        white-space: normal;
    }

    .tkfa-about .tkfa-about-image img {
        height: 300px;
    }

    /* --- Vision / Mission --- */
    .tkfa-vision-mission .row {
        flex-wrap: wrap;
    }

    .tkfa-vision-mission .row > [class*="col-"] {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* --- Footer --- */
    .tkfa-footer .tkfa-footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .tkfa-footer .tkfa-footer-nav {
        flex: 0 0 auto;
        text-align: center;
    }

    /* Hide the main logo between the nav groups on mobile */
    .tkfa-footer .footer-logo-main {
        display: none;
    }

    /* Show the smaller logo below the links */
    .tkfa-footer .footer-logo-mobile {
        display: block;
        text-align: center;
        margin-top: 12px;
    }

    .tkfa-footer .footer-logo-mobile img {
        max-height: 50px;
    }

    .tkfa-footer .nav-link {
        font-size: 14px;
        padding: 4px 8px;
    }

    /* --- General spacing --- */
    .tkfa-section {
        padding: 50px 0;
    }

    .tkfa-section-lg {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tkfa-hero .hero-title {
        font-size: 24px;
    }

    .tkfa-hero .hero-line {
        flex: 0 1 25px;
    }

    .tkfa-hero .hero-tagline,
    .tkfa-hero .hero-subtitle {
        font-size: 14px;
        white-space: normal;
    }

    /* Stack service cards to single column on very small screens */
    .tkfa-service-tile {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tkfa-statement h1 {
        font-size: 20px;
    }

    .tkfa-contact .section-title {
        font-size: 24px;
    }

    .tkfa-services-detail .section-title {
        font-size: 24px;
    }

    .tkfa-about .section-title {
        font-size: 24px;
    }
}

/* Tighten spacing specifically for the service cards section
   Ensure any global .section-header or .section-title rules do not re-introduce large gaps */
.tkfa-service-cards {
    padding-top: 1px !important; /* single-line spacing above cards */
}

/* Tighten the spacing under the header text specifically (remove extra gap below the title)
   Reduce margin-bottom and remove any padding so cards sit close beneath the title. */
.tkfa-service-cards .section-header {
    margin-top: 0 !important;
    margin-bottom: 4px !important; /* very small gap between header and cards */
    padding-bottom: 0 !important;
}
.tkfa-service-cards .section-title {
    margin-top: 0 !important;
    margin-bottom: 4px !important; /* minimal gap below the title text */
    padding-bottom: 0 !important;
}
.tkfa-service-cards .section-label {
    display: none !important;
}

.tkfa-footer .footer-login-section {
    margin-top: 18px;
    text-align: right;
}

.tkfa-footer .footer-login-title {
    font-family: var(--tkfa-font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tkfa-accent);
    margin-bottom: 6px;
}

.tkfa-footer .footer-login-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--tkfa-accent);
    border-radius: 3px;
    color: var(--tkfa-accent);
    font-family: var(--tkfa-font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tkfa-footer .footer-login-link:hover {
    background-color: var(--tkfa-accent);
    color: var(--tkfa-bg-dark);
}

@media (max-width: 767.98px) {
    .tkfa-footer .footer-login-section {
        text-align: center;
    }
}
