/* css/style.css */
:root {
    --primary-color: #0A2F5A; /* Deep Blue - Professional Finance */
    --secondary-color: #34DFFA; /* Gold/Amber - Accent for CTAs, Highlights */
    --tertiary-color: #4A708B; /* Muted Blue/Grey - For secondary text or elements */
    --light-color: #FFFFFF;
    --dark-color: #222222; /* Dark Grey for text */
    --bg-light-gray: #f8f9fa;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; /* Prioritizes system fonts like San Francisco/Helvetica */
    --heading-font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Example for headings */
    --border-radius: 6px;
    --container-width: 1140px;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }


p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light-gray);
}
.bg-dark {
    background-color: var(--primary-color); /* Or a darker shade */
}
.text-light {
    color: var(--light-color);
}
.text-light h1, .text-light h2, .text-light h3, .text-light p {
    color: var(--light-color);
}
.text-light a {
    color: var(--light-color); /* Adjust if secondary color preferred for links on dark bg */
}
.text-light a:hover {
    color: var(--secondary-color);
}


.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem; /* Responsive font size could be added */
}
.section-title-small { /* For subsections */
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color); /* Or white if gold is light enough */
}
.btn-primary:hover {
    background-color: #d49900; /* Darker gold */
    color: var(--dark-color);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-tertiary {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 0; /* Minimal padding, more like a link */
}
.btn-tertiary:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}


/* Header & Navigation */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0rem;
}

@media (min-width: 768px) {
.logo {
    height: 100px; /* Base height for larger screens */
    max-height: 25vh; /* Shrink based on viewport height */
    margin-right: auto; /* Push logo to the left */
    width: auto;
}
.footer-logo {
    height: 100px; /* Adjust as needed */
    width: auto;
    margin-bottom: 1rem;
}
}

@media (max-width: 767px) {
.logo {
    height: 60px; /* Smaller height on smaller screens */
    max-height: 10vh;
    width: auto;
    margin-right: auto; /* Push logo to the left */
}
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--primary-color); /* Or secondary color */
}


.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: 1px solid transparent; /* Keep a border for focus outline */
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
 transition: background-color var(--transition-speed);
}

.hamburger::before,
.hamburger::after {
    content: '';
    left: 0;
    width: 100%;
    height: 3px;
 background-color: inherit; /* Inherit color from parent, allows color change with parent */
    transition: transform var(--transition-speed), top var(--transition-speed), bottom var(--transition-speed);
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }


/* Active state for hamburger */
.nav-toggle.active .hamburger { background-color: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }


/* Hero Section */
.hero {
    /*    background: url('https://images.pexels.com/photos/7414284/pexels-photo-7414284.jpeg?auto=compress&cs=tinysrgb&w=600') no-repeat center center/cover;*/
    background: url('../images/tsori_bg.png') no-repeat center center/cover;
    color: var(--light-color);
    padding: 100px 0; /* Adjust padding */
    text-align: center;
    position: relative;
}
.hero::before { /* Optional overlay for better text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(10, 47, 90, 0.6); /* Primary color with opacity */
}
.hero-content {
    position: relative; /* To sit on top of overlay */
    max-width: 800px;
}
.hero h1 {
    color: var(--light-color);
    font-size: 3rem; /* Responsive font size needed */
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn {
    margin: 0.5rem;
}
.hero .btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}
.hero .btn-secondary {
    border-color: var(--light-color);
    color: var(--light-color);
}
.hero .btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Feature Grid (Home Page Intro) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-item {
    text-align: center;
    padding: 1.5rem;
}
.feature-icon {
    width: 100px; /* Adjust size */
    height: 100px;
    margin: 0 auto 1rem auto; /* Center the icon */
}
.feature-item {
    background-color: var(--light-color); /* Match service card background */
    border-radius: var(--border-radius); /* Match service card border radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.07); /* Match service card box shadow */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed); /* Match service card transitions */
    /* If using SVG icons, you can color them with CSS: fill: var(--primary-color); */

}
.feature-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Service Overview Grid (Homepage) */
.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
/* Kept existing service-overview-grid styling */
.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.service-card-img {
    width: 100%;
 height: 200px; /* Adjust as needed */
    aspect-ratio: 3 / 2; /* Maintain aspect ratio */
    object-fit: cover;
}
.service-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}
.service-card p {
    padding: 0 1.5rem 1rem;
    font-size: 0.95rem;
    color: #555;
}
.service-card .btn-tertiary {
    display: block;
    padding: 1rem 1.5rem;
    text-align: right;
    font-weight: bold;
}

/* Testimonials */
.testimonial {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    padding: 1.5rem;
    /* border-left: 4px solid var(--secondary-color); */
    /* background-color: var(--bg-light-gray); */
}
.testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #444;
    margin-bottom: 1rem;
    position: relative;
}
.testimonial blockquote::before { /* Optional quote marks */
    content: '“';
    font-size: 3rem;
    color: var(--secondary-color);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.5;
}
.testimonial cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* CTA Banner */
#cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
#cta-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header (for About, Services, etc.) */
.page-header {
    background: url('../images/tsori_header.png') no-repeat center center/cover;
    padding: 40px 0;
    text-align: center;
    position: relative; /* Needed for overlay */
}
.page-header::before { /* Add the semi-transparent dark overlay */
 content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
 background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
}

.page-header h1 {
    color: var(--light-color);/* Ensure headings are dark on light background */
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative; /* To sit on top of overlay */
}
.page-header p {
    font-size: 1.5rem;
    color: var(--light-color);/* Ensure headings are dark on light background */
    max-width: 600px;
    margin: 0 auto;
    position: relative; /* To sit on top of overlay */
}

/* About Page - Mission/Vision */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* About Page - Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.value-item {
    padding: 1.5rem;
    /* border: 1px solid #eee; */
    /* border-radius: var(--border-radius); */
}
.value-item h3 {
    color: var(--primary-color);
}

/* About Page - Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.team-member {
    text-align: center;
}
.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
 overflow: hidden; /* Ensure image respects border-radius */
    margin: 0 auto 1rem auto;
    border: 4px solid var(--bg-light-gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}
.team-title {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Services Page - Detail Layout */
.service-detail .service-content {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 2rem;
    align-items: center;
}
.service-detail-img {
    border-radius: var(--border-radius);
    object-fit: cover;
    max-height: 350px; /* Adjust as preferred */
    width: 100%;
}


.service-detail ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}
.service-detail ul li {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .service-detail .service-content {
        grid-template-columns: 1fr 1.5fr; /* Image left, text right */
    }
    .service-detail .service-content.reverse {
        grid-template-columns: 1.5fr 1fr; /* Text left, image right */
    }
    .service-detail .service-content.reverse img { /* Ensure image is ordered correctly visually */
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
}


/* Case Studies Page */
.case-study-item {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.case-study-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.case-study-img {
    border-radius: var(--border-radius);
    object-fit: cover;
    max-height: 300px;
    width: 100%;
}
.case-study-item img {
    max-width: 100%;
    height: auto; /* Ensure aspect ratio is maintained */
    border-radius: var(--border-radius);
    object-fit: cover;
    max-height: 300px; /* Adjust height as needed */
}
.case-study-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.case-study-content h3 {
    font-size: 1.6rem;
}
.case-study-content strong {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .case-study-item {
        grid-template-columns: 300px 1fr; /* Image fixed width, content takes rest */
    }
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr; /* Form larger */
    }
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 47, 90, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
#formStatus {
    margin-top: 1rem;
    font-weight: bold;
}
.contact-details-container h2, .contact-form-container h2 {
    margin-bottom: 1.5rem;
}
.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--dark-color); /* Dark background for footer */
    color: #ccc; /* Light text color */
    padding: 40px 0;
    margin-top: auto; /* Pushes footer to bottom if content is short */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
footer h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
footer p, footer li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
footer a {
    color: #bbb; /* Lighter link color for footer */
    transition: color var(--transition-speed);
}
footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}
footer ul {
    padding-left: 0;
}

/* Admin Page Specific - Placeholder for GA metrics */
.info-box {
    background-color: #eef7ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above navigation */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Dark overlay */
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
}
.modal.show {
    display: block;
    opacity: 1;
}


.modal-content {
    background-color: var(--light-color);
    margin: 10% auto; /* Center modal vertically and horizontally */
    padding: 20px;
    border-radius: var(--border-radius);
    width: 80%; /* Adjust width as needed */
    max-width: 600px; /* Max width for larger screens */
    position: relative; /* Needed for close button positioning */
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}

/* Add a slight scale-up animation for modal content */
.modal.show .modal-content {
    animation: scaleUp 0.3s ease-in-out;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
        z-index: 1001; /* Above nav links */
    }
    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 70%; /* Or a fixed width like 250px */
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        padding-top: 5rem; /* Space for logo/close button */
        transition: left var(--transition-speed);
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    .nav-toggle.active + .nav-links { /* Select the nav-links when nav-toggle is active */
        left: 0; /* Slide in */
    }
    .nav-links li {
        margin: 0;
    }
    .nav-links a, .nav-links a.active { /* Apply styles to active link in mobile nav */
        display: block;
        padding: 1rem 1.5rem;
        color: var(--light-color);
        font-size: 1.1rem;
    }
    .nav-links a::after { display: none; } /* No underline effect on mobile nav */
    .nav-links a:hover, .nav-links a.active { /* This rule was accidentally cut */
 background-color: var(--primary-color); /* Or a slightly lighter shade of dark-color */
 color: var(--light-color); /* Ensure text remains light on hover */
    }

    .nav-toggle.active + .nav-links { /* Select the nav-links when nav-toggle is active */
 left: 0; /* Slide in */
 }

    .grid-two-columns {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-grid > div {
        margin-bottom: 1.5rem;
    }
}

/* Keyframes for animations */
@keyframes scaleUp {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}