body {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.container {
    max-width: 1280px;
}

.cta-zigzag {
    background-image: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}

@media (min-width: 768px) {
    .cta-zigzag {
        clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem; /* ~56px */
    }
    h2 {
        font-size: 2.8rem; /* ~45px */
    }
    h3 {
        font-size: 1.8rem; /* ~29px */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.5rem; /* ~40px */
    }
    h2 {
        font-size: 2.2rem; /* ~35px */
    }
    h3 {
        font-size: 1.6rem; /* ~26px */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem; /* ~29px */
    }
    h2 {
        font-size: 1.6rem; /* ~26px */
    }
    h3 {
        font-size: 1.2rem; /* ~19px */
    }
    .text-2xl.font-bold.text-blue-700 {
        font-size: 0.9rem; /* for site name */
    }
}

/* Ensure images in grids maintain aspect ratio and fill space */
.portfolio-item img {
    object-fit: cover;
    height: 300px; /* Static height for uniformity */
}

@media (min-width: 768px) {
    .portfolio-item img {
        height: 400px;
    }
}

/* Custom styles for hero tiles overlay */
.hero-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.7) 0%, rgba(29, 78, 216, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.hero-tile:hover::before {
    opacity: 1;
}

.hero-tile:hover h3, .hero-tile:hover p {
    color: #fff;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fix for fixed header */
section {
    scroll-margin-top: 100px; /* Adjust based on header height */
}

/* Custom styles for details/summary (accordions) */
details[open] summary ~ * {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

details summary::-webkit-details-marker {
    display: none;
}

/* Leaflet map styling */
#map {
    height: 400px;
    width: 100%;
}

/* Tariff modal */
.tariff-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tariff-modal.hidden {
    display: none;
}

.tariff-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
}

.tariff-modal__content {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    z-index: 1;
    text-align: left;
}

.tariff-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 6px 0 8px;
}

.tariff-modal__subtitle {
    font-size: 1rem;
    color: #475569;
    margin: 0 0 16px;
}

.tariff-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-modal__label {
    font-weight: 600;
    color: #334155;
}

.tariff-modal__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    outline: none;
}

.tariff-modal__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tariff-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
}

.tariff-modal__close:hover {
    color: #1e3a8a;
}

.tariff-modal__action {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.tariff-modal__action:hover {
    background: #1d4ed8;
}

/* Container styling for spacing */
.dataTrustFrame {
    margin-top: 20px; /* Top margin for the container */
    padding: 15px 20px; /* Padding inside the container (top/bottom and left/right) */
    font-family: Arial, sans-serif; /* Default font for content within the frame */
    color: #333; /* Default text color */
}

/* Heading styles */
.dataTrustFrame h1 {
    font-size: 1.8em; /* Moderate font size for H1 */
    font-weight: 600; /* Slightly bolder than normal */
    margin-top: 0.8em; /* Top margin for H1 */
    margin-bottom: 0.7em; /* Bottom margin for H1 */
    line-height: 1.2; /* Line height for better readability */
}

.dataTrustFrame h2 {
    font-size: 1.5em; /* Moderate font size for H2 */
    font-weight: 600;
    margin-top: 0.7em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.dataTrustFrame h3 {
    font-size: 1.3em; /* Moderate font size for H3 */
    font-weight: 500; /* Slightly less bold */
    margin-top: 0.6em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.dataTrustFrame h4 {
    font-size: 1.1em; /* Moderate font size for H4 */
    font-weight: 500;
    margin-top: 0.5em;
    margin-bottom: 0.4em;
    line-height: 1.5;
}

.dataTrustFrame h5 {
    font-size: 1em; /* Moderate font size for H5, similar to body text */
    font-weight: 500;
    margin-top: 0.4em;
    margin-bottom: 0.3em;
    line-height: 1.6;
}

/* Paragraph styles */
.dataTrustFrame p {
    font-size: 1em; /* Standard paragraph font size */
    margin-top: 0.5em; /* Top margin for paragraphs */
    margin-bottom: 1em; /* Bottom margin for paragraphs */
    line-height: 1.6; /* Line height for readability */
}

/* List styles */
.dataTrustFrame ul {
    list-style-type: disc; /* Default bullet style */
    margin-top: 1em; /* Top margin for unordered lists */
    margin-bottom: 1em; /* Bottom margin for unordered lists */
    padding-left: 25px; /* Indentation for list items */
}

.dataTrustFrame li {
    font-size: 1em; /* Standard font size for list items */
    margin-bottom: 0.5em; /* Space between list items */
    line-height: 1.5; /* Line height for list items */
}
