/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1. Root Variables (Colors, Fonts)
2. Base Styles (HTML, Body, Smooth Scroll)
3. Typography (Headings, Paragraphs, Links)
4. Buttons (Custom Example)
5. Forms (Basic Enhancements)
6. Header & Footer Styles (Optional Refinements)
7. Modal Styles (Optional Refinements)
8. Utility Classes (Examples)
-------------------------------------------------------------------*/

/* 1. Root Variables
-------------------------------------------------------------------*/
:root {
    /* Colors - Updated to match logo */
    --color-primary: #3B82F6;        /* Blue */
    --color-primary-hover: #2563EB;  /* Darker Blue */
    --color-secondary: #D1D5DB;      /* Light Grey */
    --color-secondary-hover: #9CA3AF; /* Medium Grey */
    --color-text-dark: #1F2937;      /* Dark Grey Text */
    --color-text-medium: #6B7280;    /* Medium Grey Text */
    --color-text-light: #D1D5DB;     /* Light Grey Text */
    --color-border: #E5E7EB;         /* Border Grey */
    --color-bg-light: #F9FAFB;       /* Very Light Grey */
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #1F2937;        /* Dark Grey Background */

    /* Fonts */
    --font-primary: 'Montserrat', sans-serif; /* Updated default */
    --font-secondary: 'Poppins', sans-serif; /* For specific headings/elements */
    --font-calligraphy: 'Dancing Script', cursive; /* Added Calligraphy Font */

    /* Other Variables */
    --transition-speed: 0.2s;
    --border-radius: 0.375rem; /* Matches Tailwind's rounded-md */
}

/* 2. Base Styles
-------------------------------------------------------------------*/
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure main content doesn't overlap fixed header if NOT using Tailwind pt-* class */
/* main { padding-top: 4rem; } */ /* Adjust based on header height */

/* 3. Typography
-------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700; /* Bold */
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.5rem; } /* 40px */
h2 { font-size: 2rem; }   /* 32px */
h3 { font-size: 1.5rem; } /* 24px */
h4 { font-size: 1.25rem; }/* 20px */

p {
    margin-bottom: 1.25em;
    color: var(--color-text-medium);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Strong/Bold */
strong, b {
    font-weight: 700;
}

/* 4. Buttons (Custom Example - Use if not relying solely on Tailwind button classes)
-------------------------------------------------------------------*/
.btn {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600; /* Semibold */
    padding: 0.75rem 1.5rem; /* Adjust padding */
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, color var(--transition-speed) ease;
    font-size: 0.95rem; /* Slightly smaller than 1rem */
    line-height: 1.25; /* Ensure consistent height */
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-bg-white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
    color: var(--color-bg-white);
    text-decoration: none;
}

/* 5. Forms (Basic Enhancements - Complements Tailwind Forms Plugin)
-------------------------------------------------------------------*/
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    background-clip: padding-box;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25); /* Subtle focus ring */
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

/* 6. Header & Footer Styles (Optional Refinements)
-------------------------------------------------------------------*/
/* Example: Add a subtle bottom border to the sticky header */
/* header.fixed { border-bottom: 1px solid var(--color-border); } */

/* Example: Style footer links */
/* footer { background-color: var(--color-bg-dark); color: var(--color-text-light); } */
/* footer a { color: var(--color-text-light); } */
/* footer a:hover { color: var(--color-bg-white); } */

/* 7. Modal Styles (Optional Refinements)
-------------------------------------------------------------------*/
/* Example: Adjust modal background overlay opacity */
/* .fixed.inset-0.bg-gray-500.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.6); } */

/* Example: Style the modal content box */
/* .modal-content { background-color: var(--color-bg-white); padding: 2rem; border-radius: calc(var(--border-radius) * 2); box-shadow: 0 10px 25px rgba(0,0,0,0.1); } */


/* 8. Utility Classes (Examples - Use sparingly if using Tailwind)
-------------------------------------------------------------------*/
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.text-primary {
    color: var(--color-primary);
}

.bg-light {
    background-color: var(--color-bg-light);
}