/* Gateway Tax Service - Main Stylesheet */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors - Navy Palette */
    --navy-deep: #0a1e3d;
    --navy-primary: #0a335e;
    --navy-medium: #0f4c81;
    
    /* Colors - Silver/Gray Palette */
    --silver-light: #ced3da;
    --silver-medium: #8899aa;
    --silver-dark: #6b7c8f;
    
    /* Colors - Accent */
    --accent-gold: #d4a574;
    
    /* Colors - Backgrounds */
    --cream: #e9e9f0;
    --white: #ffffff;
    
    /* Fonts */
    --font-serif: 'Crimson Pro', serif;
    --font-sans: 'Work Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-primary);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy-primary);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p {
    margin-bottom: 1rem;
    color: var(--silver-dark);
}

a {
    color: var(--navy-primary);
    text-decoration: underline;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent-gold);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--silver-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Header section (logo/brand) */
.navbar-header {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--silver-light);
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    text-decoration: none;
    display: inline-block;
}

.brand-subtitle {
    font-size: 0.8em;
    font-weight: 400;
}

/* Menu section (navigation links) */
.navbar-menu {
    padding: 0.75rem 0;
    text-align: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-link {
    color: var(--silver-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

/* Desktop: Single row layout */
@media (min-width: 769px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-header {
        border-bottom: none;
        padding: 0;
        text-align: center;
    }
    
    .navbar-menu {
        padding: 0;
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.content-narrow {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-with-accent {
    position: relative;
    overflow: hidden;
}

.card-with-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.card-with-accent:hover::before {
    transform: scaleX(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--navy-deep);
}

.btn-primary:hover {
    background: #c99563;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
}

.btn-secondary:hover {
    background: var(--navy-primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--navy-primary);
}

.btn-light:hover {
    background: var(--cream);
}

.btn-on-dark {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-on-dark:hover {
    background: var(--white);
    color: var(--navy-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   ICONS
   ============================================ */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-medium) 100%);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-full);
    font-size: 2rem;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--navy-primary);
    color: var(--white);
}

.badge-gold {
    background: var(--accent-gold);
    color: var(--navy-deep);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--navy-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--silver-medium);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   LISTS
   ============================================ */
.list-checkmark {
    list-style: none;
    padding: 0;
}

.list-checkmark li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--silver-light);
}

.list-checkmark li:last-child {
    border-bottom: none;
}

.list-checkmark li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg-navy-gradient {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-primary) 100%);
}

.bg-navy-deep {
    background: var(--navy-deep);
}

.bg-navy-primary {
    background: var(--navy-primary);
}

.bg-cream {
    background: var(--cream);
}

.bg-white {
    background: var(--white);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-navy { color: var(--navy-deep); }
.text-navy-primary { color: var(--navy-primary); }
.text-silver { color: var(--silver-medium); }
.text-silver-light { color: var(--silver-light); }
.text-silver-dark { color: var(--silver-dark); }
.text-white { color: var(--white); }
.text-gold { color: var(--accent-gold); }

.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ============================================
   SPACING UTILITIES
   ============================================ */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }

.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ============================================
   BORDER UTILITIES
   ============================================ */
.border { border: 1px solid var(--silver-medium); }
.border-top { border-top: 1px solid var(--silver-medium); }
.border-bottom { border-bottom: 1px solid var(--silver-medium); }
.border-navy { border-color: var(--navy-primary); }

.border-radius-sm { border-radius: var(--radius-sm); }
.border-radius-md { border-radius: var(--radius-md); }
.border-radius-lg { border-radius: var(--radius-lg); }
.border-radius-full { border-radius: var(--radius-full); }

/* ============================================
   SHADOW UTILITIES
   ============================================ */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-none { box-shadow: none; }

/* ============================================
   FLEXBOX UTILITIES
   ============================================ */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--silver-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item-content h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    color: var(--silver-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--silver-light);
    text-decoration: none;
}

.contact-item-content a:hover {
    color: var(--accent-gold);
}

.map-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.map-section p {
    color: var(--silver-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .grid-auto {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        gap: 1rem;
    }
    
    h1 { font-size: 1.75rem; }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in { animation: fadeIn 0.5s ease; }
.fade-in-up { animation: fadeInUp 0.5s ease; }
.slide-in-left { animation: slideInLeft 0.5s ease; }
.slide-in-right { animation: slideInRight 0.5s ease; }
