/* ============================================
   Precision Tile & Grout - Shared Styles
   common.css - Cached across all pages
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #2563eb;
    --primary-orange: #f59e0b;
    --dark-gray: #1f2937;
    --medium-gray: #4b5563;
    --light-gray: #f9fafb;
    --white: #ffffff;
    --success-green: #10b981;
    --error-red: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);

    /* Aliases for city pages */
    --primary: #2563eb;
    --secondary: #f97316;
    --dark: #1e293b;
    --light: #f8fafc;
    --text: #475569;
    --border: #e2e8f0;
    --success: #10b981;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to Content - Accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
}

.skip-to-content:focus {
    left: 0;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    min-height: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    height: 100px;
    overflow: hidden;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 200px;
    width: auto;
    margin: -50px 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-orange), #f97316);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 300;
    padding: 1.5rem;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-nav.active {
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff !important;
    line-height: 1;
    padding: 0 !important;
}

.social-link svg {
    display: block;
    flex-shrink: 0;
}

.social-link.facebook { background: #1877F2; }
.social-link.facebook:hover { background: #0d65d9; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4); }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.instagram:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4); }
.social-link.yelp { background: #FF1A1A; }
.social-link.yelp:hover { background: #d41515; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255, 26, 26, 0.4); }

/* Floating Call Button */
.float-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-orange);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 99;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
}

.float-call:hover {
    transform: scale(1.1);
}

/* Responsive - Nav & Footer */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
}

@media (max-width: 768px) {
    .logo { height: 70px; }
    .logo img { height: 140px; margin: -35px 0; }
    nav { padding: 5px 0; }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .float-call { width: 55px; height: 55px; font-size: 1.3rem; }
}

/* Print */
@media print {
    header, footer, .float-call, .mobile-nav { display: none; }
}
