/* ================================
   Trinity Ice LLC - Styles
   ================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --deep-water-blue: #0A4D68;
    --ice-blue: #088395;
    --crystal-aqua: #05BFDB;
    --crisp-white: #FFFFFF;
    --frost-white: #F0F9FF;
    --slate-gray: #475569;
    --ice-shadow: #E0F2FE;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 1rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-gray);
    background-color: var(--crisp-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--deep-water-blue);
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

/* ================================
   Utility Classes
   ================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--ice-blue);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--crystal-aqua);
    color: var(--deep-water-blue);
}

.btn-primary:hover {
    background-color: var(--ice-blue);
    color: var(--crisp-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 191, 219, 0.4);
}

/* ================================
   Header & Navigation
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--crisp-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
}

/* Hamburger Menu */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--deep-water-blue);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--deep-water-blue);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger Active State */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.nav-menu {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    background-color: var(--crisp-white);
    padding: 1rem 0;
    transform: translateX(-100%);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-item {
    text-align: center;
    padding: 1rem 0;
}

.nav-link {
    color: var(--deep-water-blue);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--crystal-aqua);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/location.png') center/cover no-repeat;
    padding-top: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--crisp-white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--ice-shadow);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--crisp-white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ================================
   About Section
   ================================ */
.about {
    padding: var(--section-padding);
    background-color: var(--crisp-white);
}

.about-content {
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--deep-water-blue);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--frost-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--ice-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 77, 104, 0.1);
}

.feature-icon {
    color: var(--crystal-aqua);
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--slate-gray);
}

/* ================================
   Locations Section
   ================================ */
.locations {
    padding: var(--section-padding);
    background-color: var(--frost-white);
}

/* Map Container */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 77, 104, 0.15);
    margin-bottom: 2rem;
}

/* Location List */
.location-list {
    margin-top: 2rem;
}

.location-list-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.location-item {
    background-color: var(--crisp-white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--crystal-aqua);
    transition: var(--transition);
    cursor: pointer;
}

.location-item:hover,
.location-item:focus {
    box-shadow: 0 4px 15px rgba(10, 77, 104, 0.1);
    transform: translateX(5px);
}

.location-item:focus {
    outline: 2px solid var(--crystal-aqua);
    outline-offset: 2px;
}

.location-address {
    font-weight: 600;
    color: var(--deep-water-blue);
    margin-bottom: 0.25rem;
}

.location-city {
    font-size: 0.9rem;
    color: var(--slate-gray);
}

/* ================================
   App Section
   ================================ */
.app-section {
    background-color: var(--deep-water-blue);
    padding: var(--section-padding);
    text-align: center;
}

.app-section .section-title {
    color: var(--crisp-white);
}

.app-description {
    color: var(--crisp-white);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--crisp-white);
    color: var(--slate-gray);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-logo-img {
    height: 160px;
    width: auto;
}

.footer-contact h4 {
    color: var(--deep-water-blue);
    margin-bottom: 0.5rem;
}

.footer-phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--crystal-aqua);
}

.footer-phone:hover {
    color: var(--deep-water-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* Footer Support Section */
.footer-support {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-support h4 {
    color: var(--deep-water-blue);
    margin-bottom: 0.75rem;
}

.footer-support a {
    color: var(--crystal-aqua);
    font-weight: 600;
}

.footer-support a:hover {
    color: var(--deep-water-blue);
}

.footer-support-text {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Footer Legal Disclaimer */
.footer-legal {
    font-size: 0.8rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    opacity: 0.9;
}

/* ================================
   Leaflet Popup Styling
   ================================ */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: var(--font-body);
}

.popup-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--deep-water-blue);
    margin-bottom: 0.5rem;
}

.popup-address {
    color: var(--slate-gray);
    margin-bottom: 0.5rem;
}

.popup-link {
    display: inline-block;
    color: var(--ice-blue);
    font-weight: 500;
}

.popup-link:hover {
    color: var(--crystal-aqua);
}

/* ================================
   Responsive Breakpoints
   ================================ */

/* Small tablets (640px+) */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    /* Desktop Navigation */
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        transform: translateX(0);
        display: flex;
        gap: 2rem;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav-item {
        padding: 0;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    /* About */
    .features {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Map */
    .map-container {
        height: 450px;
    }

    /* Locations */
    .location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
}

/* Small laptops (1024px+) */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .map-container {
        height: 500px;
    }

    .location-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .about-text {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
}

/* Large screens (1280px+) */
@media (min-width: 1280px) {
    .container {
        padding: 0;
    }

    .location-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* ================================
   Legal Pages (Privacy & Terms)
   ================================ */
.legal-page {
    padding: 10rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-water-blue);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--slate-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--deep-water-blue);
    margin: 2rem 0 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--ice-blue);
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--crystal-aqua);
}

.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Secondary Button Style */
.btn-secondary {
    background-color: transparent;
    color: var(--deep-water-blue);
    border: 2px solid var(--deep-water-blue);
}

.btn-secondary:hover {
    background-color: var(--deep-water-blue);
    color: var(--crisp-white);
}

/* Footer Links */
.footer-links {
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--ice-blue);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--crystal-aqua);
}

/* Legal page responsive */
@media (min-width: 768px) {
    .legal-title {
        font-size: 3rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }
}
