/* style.css
    Shared stylesheet for Focussini Concepts Website
*/

/* --- Root Variables --- */
:root {
    --color-primary: #0A2342;
    /* Deep Navy */
    --color-secondary: #D1B06B;
    /* Gold */
    --color-text: #333333;
    --font-main: 'Inter', sans-serif;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Or match your body bg */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out 0.2s, visibility 0.5s ease-out 0.2s;
    /* Added delay */
}

/* Style for body when preloader is active */
body.loading main,
body.loading #footer-placeholder {
    opacity: 0;
    visibility: hidden;
}

/* Style for preloader when fading out */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* Style for body content when loaded */
body.loaded main,
body.loaded #footer-placeholder {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in 0.5s;
    /* Delay fade-in to match preloader fade out */
}


/* --- Base Styles --- */
body {
    font-family: var(--font-main);
    color: var(--color-text);
    padding-top: 80px;
    /* Default top padding for the fixed header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Header Styles --- */
#main-header {
    height: 80px;
    /* Set a fixed height for the header */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, height 0.3s ease-in-out;
    background-color: #ffffff;
    /* Default solid white background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Default shadow */
    position: fixed;
    /* Make header fixed on all pages */
    width: 100%;
    z-index: 50;
    /* Ensure header is above content */
}

/* Make logo bigger - New rule */
#main-header a[href="/"] img {
    /* Updated selector for root link */
    height: 4.25rem;
    /* ~70% bigger than h-10 (2.5rem) */
    width: auto;
    transition: height 0.3s ease-in-out;
    /* Add transition */
}

/* Header link styles */
#main-header .nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    color: var(--color-text);
}

#main-header .nav-link:hover {
    color: var(--color-secondary);
}

#main-header .nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom-color: var(--color-secondary);
}

/* --- Transparent Header (Home Page Only) --- */
body.home-page {
    padding-top: 0;
}

body.home-page #main-header {
    background-color: transparent;
    box-shadow: none;
}

body.home-page #main-header .nav-link {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.9;
}

body.home-page #main-header .nav-link:hover {
    color: #ffffff;
    opacity: 1;
    border-bottom-color: var(--color-secondary);
}

body.home-page #main-header .nav-link.active {
    color: #ffffff;
    opacity: 1;
    font-weight: 600;
    border-bottom-color: var(--color-secondary);
}

body.home-page #main-header #mobile-menu-button {
    color: #ffffff;
}

/* Scrolled state for transparent header */
body.home-page #main-header.header-scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    /* Shorter on scroll */
}

/* Shrink logo slightly on scroll - New rule */
body.home-page #main-header.header-scrolled a[href="/"] img {
    /* Updated selector */
    height: 3.25rem;
    /* 52px - Shrink down for 70px header */
}

body.home-page #main-header.header-scrolled .nav-link {
    color: var(--color-text);
    opacity: 1;
}

body.home-page #main-header.header-scrolled .nav-link:hover {
    color: var(--color-secondary);
}

body.home-page #main-header.header-scrolled .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

body.home-page #main-header.header-scrolled #mobile-menu-button {
    color: var(--color-text);
}


/* --- Page Header (Internal Pages) --- */
.page-header {
    background-color: var(--color-primary);
    color: white;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    padding-top: 140px;
    /* Header height + padding */
}

.hero-subtitle {
    font-size: 1.125rem;
    /* 18px */
    opacity: 0.8;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    margin: 0.25rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 176, 107, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
    color: white;
    font-weight: 500;
    padding: 0.8125rem 2rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: inline-block;
    margin: 0.25rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-primary-outline {
    background-color: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    display: inline-block;
}

.btn-primary-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary-outline-darkbg {
    background-color: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-primary-outline-darkbg:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* --- Reusable Section Styles --- */
.section-subheading {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

/* --- Custom Utility Classes --- */
.text-primary-600 {
    color: var(--color-primary);
}

.bg-primary-600 {
    background-color: var(--color-primary);
}

.text-secondary-600 {
    color: var(--color-secondary);
}

.bg-secondary-600 {
    background-color: var(--color-secondary);
}

/* --- Practice Card Styles (Home & Services) --- */
.practice-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.practice-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 64px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.practice-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.practice-card-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    /* 15.2px */
}

/* --- Value Card Styles (Home & About) --- */
.value-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e0e0e0;
    /* UPDATED: More pronounced border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    /* Slightly increased shadow */
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    /* Added border transition */
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    /* Slightly increased shadow on hover */
    border-color: var(--color-secondary);
    /* Highlight border on hover */
}

.value-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.value-card-description {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Contact Form Input --- */
.form-input {
    display: block;
    width: 100%;
    padding: 0.875rem 1.125rem;
    /* Increased padding */
    font-size: 1rem;
    /* Ensure standard size */
    line-height: 1.5;
    color: var(--color-text);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    /* 8px */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.form-input:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(10, 35, 66, 0.25);
    /* Focus ring with primary color */
}


/* --- Footer --- */
footer {
    background-color: #111827;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

/* On-scroll animations (Refined) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    /* Slightly increased starting offset */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* Slightly faster */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Scroll to Top Button --- */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    border: 2px solid var(--color-secondary);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: scale(1.05);
}