/* ===========================
   CSS Variables / Design Tokens
   =========================== */
:root {
    /* Colors */
    --primary: #00204a;
    --primary-foreground: #ffffff;
    --accent: #f9e334;
    --accent-foreground: #00204a;
    --background: #ffffff;
    --foreground: #00204a;
    --muted: #f5f5f5;
    --muted-foreground: #6b7280;
    --card: #ffffff;
    --card-foreground: #00204a;
    --border: #e5e5e5;
    --ring: rgba(0, 32, 74, 0.2);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --radius: 0.5rem;
    --container-max: 1200px;
    
    /* 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);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   Layout Utilities
   =========================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: #e6d02f;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: inherit;
    padding: 0.5rem;
}

/* ===========================
   Header
   =========================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 56px;
    height: 56px;
    display: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    transition: var(--transition);
}

.nav-desktop a:hover {
    color: var(--accent);
}

.btn-cta-desktop {
    display: none;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--primary-foreground);
    padding: 0.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-mobile-cta {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 5rem 1rem;
}

.hero-content {
    text-align: center;
    max-width: 64rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 5rem 1rem;
}

.section-muted {
    background-color: rgba(245, 245, 245, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    text-wrap: pretty;
}

/* ===========================
   Cards Grid
   =========================== */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid-3 {
    grid-template-columns: 1fr;
}

.cards-grid-4 {
    grid-template-columns: 1fr;
}

/* ===========================
   Cards
   =========================== */
.card {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.icon-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--muted-foreground);
}

.card-text-sm {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Service Cards */
.card-service:hover .icon-primary {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* ===========================
   CTA Section
   =========================== */
.section-cta {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.cta-content {
    text-align: center;
    max-width: 64rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-wrap: pretty;
}

/* ===========================
   Projects
   =========================== */
.card-project {
    overflow: hidden;
    padding: 0;
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--muted);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-project:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 32, 74, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.card-project:hover .project-overlay {
    opacity: 1;
}

.project-badge {
    background-color: white;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.project-content {
    padding: 1rem;
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===========================
   Testimonials
   =========================== */
.card-testimonial {
    padding: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.quote-icon {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    text-wrap: pretty;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--accent-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
}

.author-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===========================
   Contact Section
   =========================== */
.contact-grid {
    display: grid;
    gap: 3rem;
}

.contact-form-card {
    padding: 1.5rem;
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-details p {
    color: var(--muted-foreground);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 2rem;
    height: 2rem;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===========================
   Responsive Styles
   =========================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .logo-img {
        display: block;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .btn-cta-desktop {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .cards-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cards-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
