/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary, #333);
    background-color: var(--bg-primary, #ffffff);
} 

/* CSS Variables - Light blue header with white background */
:root {
    --text-primary: #000000;
    --text-white: #ffffff;
    --text-secondary: #000000;
    --text-light: #000000;
    --bg-primary: linear-gradient(135deg, #ffffff 10%, #87ceeb 90%);
    --bg-secondary: #ffffff;
    --bg-light: #ffffff;
    --border-color: #87ceeb;
    --accent-color: #87ceeb;
    --accent-hover: #5f9ea0;
    --highlight-color: #007bff;
    --card-bg: #ffffff;
    --device-card-bg: #ffffff;
    --device-card-text: #000000;
    --card-text: #000000;
    --blue-green-gradient: linear-gradient(135deg, #87ceeb 0%, #ffffff 100%);
}

/* Header Styles */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand .logo {
    height: 70px;
    width: auto;
}

.nav-brand .brand-text h1 {
    margin: 0;
    line-height: 1;
}

.nav-brand .brand-text .brand-small {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.95;
}

.nav-brand .brand-text .rekreotech {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--highlight-color);
    letter-spacing: 0.3px;
}



.highlight {
    color: var(--highlight-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 140px);
    padding-top: 100px;
}

@media (max-width: 768px) {
    main {
        padding-top: 120px;
    }
}

/* Hero Section */
.hero {
    background: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(49, 130, 206, 0.15) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--text-primary);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--device-card-bg);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.device-item:hover {
    background: var(--device-card-bg);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.device-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.device-name {
    font-weight: 600;
    color: var(--device-card-text);
    font-size: 1rem;
}

/* Apple Info Section */
.apple-info {
    margin-top: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page Specific Styles */
.about-hero {
    background-size: cover;
    background-position: center right;
    padding: 4rem 0;
    color: white;
}

.about-hero .hero-inner {
    background: rgba(0,0,0,0.35);
    padding: 2rem;
    border-radius: 8px;
}

.about-hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.about-hero .hero-sub { font-size: 1.1rem; opacity: 0.95; margin-bottom: 1rem; }
.about-hero .hero-lead { max-width: 800px; line-height: 1.6; }

.about-content { padding: 3rem 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.about-card { background: var(--card-bg); padding: 1.25rem; border-radius: 8px; border-left: 4px solid var(--accent-color); }
.about-card h3 { margin-bottom: 0.5rem; }
.about-card .muted { color: var(--text-secondary); margin-bottom: 0.5rem; }

.pickup-section { margin-top: 2rem; }
.location-list.two-column ul { columns: 2; -webkit-columns: 2; column-gap: 2rem; list-style: disc; padding-left: 1.2rem; }

.device-section { margin-top: 2rem; }
.device-list.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.device-list.chips span { background: #f4f6f8; padding: 0.45rem 0.6rem; border-radius: 999px; font-size: 0.95rem; border: 1px solid #e6e9eb; }

/* Location chips (Doorstep Pickup) */
.location-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.location-chips span { background: #f4f6f8; padding: 0.45rem 0.6rem; border-radius: 999px; font-size: 0.95rem; border: 1px solid #e6e9eb; }

.location-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.location-chips span { background: #f4f6f8; padding: 0.45rem 0.6rem; border-radius: 999px; font-size: 0.95rem; border: 1px solid #e6e9eb; }

.arrow { color: var(--highlight-color); font-weight: 700; margin-left: 0.5rem; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-hero { padding: 3rem 0; background-position: center; }
    .about-hero .hero-inner { padding: 1.25rem; }
    .location-list.two-column ul { columns: 1; -webkit-columns: 1; }
}

.apple-info h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.apple-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.apple-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.feature-icon {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature span:last-child {
    color: var(--card-text);
    font-weight: 500;
}

/* Why Mobfixer Section */
.why-section {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
}

.why-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.why-section .lead {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.why-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.why-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.why-cta {
    text-align: center;
    margin-top: 1.25rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* Responsive tweaks for smaller screens */
@media (max-width: 900px) {
    .device-grid { grid-template-columns: repeat(3, 1fr); max-width: 720px; margin-left: auto; margin-right: auto; }
    .hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .device-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .device-item { padding: 1rem; border-radius: 12px; min-height: 110px; }
    .device-image { width: 64px; height: 64px; }
    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.95rem; }

    /* Make modal and forms easier to use on phones */
    .modal { margin: 1rem; max-width: 520px; }
    .modal .modal-content { padding: 1rem; }
    .modal .modal-actions { text-align: center; }
    .modal .submit-btn { width: 100%; }

    /* Navbar adjustments */
    .navbar { padding: 0.75rem 1rem; }
    .nav-links { flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
    .nav-links a { padding: 0.6rem 0.5rem; display: inline-block; }

    /* Map height for phones */
    .map-container iframe { height: 250px; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .social-bottom { align-self: flex-end; margin-top: 0.5rem; }
}

@media (max-width: 420px) {
    .device-grid { grid-template-columns: 1fr; }
    .device-image { width: 60px; height: 60px; }
    .hero h1 { font-size: 1.4rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .modal { max-width: calc(100% - 32px); border-radius: 8px; }
}

/* Location Section */
.location-section {
    background: #ffffff;
    padding: 4rem 2rem;
}

.location-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.address-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.address-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.address-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-height: 250px;
}

.map-container iframe {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    width: 36px;
    height: 48px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'><path fill='%23d9534f' d='M12 0C6 0 1 5 1 11c0 9 11 22 11 22s11-13 11-22c0-6-5-11-11-11zm0 16a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 2;
}

.map-info {
    position: absolute;
    left: 50%;
    top: calc(50% + 22px);
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    z-index: 3;
    max-width: 320px;
    text-align: center;
}

.map-info::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255,255,255,0.95);
}

.map-info h4 { margin: 0 0 0.25rem 0; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.map-info p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.3; }

@media (max-width: 480px) {
    .map-pin { width: 28px; height: 38px; transform: translate(-50%, -95%); }
    .map-info { max-width: calc(100% - 40px); padding: 0.5rem 0.75rem; top: calc(50% + 16px); }
}

/* Page Content */
.page-content {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.about-section {
    margin-bottom: 2.5rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Small extra space after About section */
#about { padding-bottom: 2rem; }

/* Center About and Contact headlines only */
#about h2, #about h3,
#contact h2, #contact h3 {
    text-align: center;
}

/* Center specific About items and chips */
#about .about-section p > strong { display: block; text-align: center; }
#about .about-section p.center { text-align: center; }
#about .location-chips,
#about .device-list.chips { justify-content: center; }

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--card-text);
}

.about-section p {
    color: var(--card-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-section ul {
    color: var(--card-text);
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    width: 100%;
    margin: 0;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
} 



.contact-form h2,
.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Contact Grid and Contact Column (stacked card layout) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    max-width: 900px; /* constrain width for easier reading */
    margin: 0 auto;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
} 

.contact-card {
    background: var(--card-bg);
    padding: 1.25rem 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.contact-info .contact-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,123,255,0.12), rgba(0,123,255,0.06));
    color: var(--highlight-color);
    flex-shrink: 0;
}

.contact-info h3,
.contact-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info p, .contact-info a, .contact-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { max-width: 100%; margin: 0; }
}

@media (max-width: 480px) {
    .contact-card { padding: 1rem; }
}

/* Emphasize pickup and device cards */
.pickup-card h3,
.devices-card h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { max-width: 100%; margin: 0; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--blue-green-gradient);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #00bcd4 0%, #0f4c75 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.info-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Brands card styles */
.brands-card {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.brands-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.brands-container {
    display: flex;
    gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.brand-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.brand-item a:hover {
    transform: translateY(-5px);
}

.brand-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.brand-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: #000000;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2.25rem 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    color: #ffffff;
}

.site-footer .footer-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column { flex: 1; min-width: 200px; padding: 0 0.75rem; }

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-brand .footer-logo {
    height: 100px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.footer-brand .footer-content {
    flex: 1;
}

.footer-brand .footer-title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-address {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-contact h4, .footer-links h4 { margin-bottom: 0.5rem; }

.footer-contact { text-align: center; }

.footer-links { text-align: center; }

.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links li { margin-bottom: 0.45rem; }
.quick-links a { text-decoration: none; color: var(--text-primary); }

.social-links { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }
.social { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding: 0; border-radius: 8px; background: #f6f7f8; color: var(--text-primary); text-decoration: none; border: 1px solid #e6e9eb; transition: background .12s ease, color .12s ease, transform .08s ease; }

.social svg { width: 20px; height: 20px; display: block; fill: currentColor; }

/* Brand colors */
.social[aria-label="Instagram"] { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4); color: #fff; border-color: transparent; }
.social[aria-label="Facebook"] { background: #1877F2; color: #fff; border-color: transparent; }
.social[aria-label="LinkedIn"] { background: #0A66C2; color: #fff; border-color: transparent; }
.social[aria-label="YouTube"] { background: #FF0000; color: #fff; border-color: transparent; }

.social:hover { filter: brightness(.95); transform: translateY(-1px); }

/* Footer overrides: ensure white text and white icons on black background */
.site-footer .social { background: transparent; color: #fff; border-color: rgba(255,255,255,0.12); }
.site-footer .social[aria-label="Instagram"], .site-footer .social[aria-label="Facebook"], .site-footer .social[aria-label="LinkedIn"], .site-footer .social[aria-label="YouTube"] { background: transparent; color: #fff; border-color: rgba(255,255,255,0.12); }
.site-footer .social svg { fill: #fff; }
.site-footer a { color: #ffffff; }
.site-footer h4 { color: #ffffff; }
.site-footer .footer-address { color: #ffffff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0.75rem auto 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #ffffff;
}

.footer-address { margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.45; }

.footer-bottom .copyright { margin: 0; }

.social-bottom { display: flex; gap: 0.5rem; }

@media (max-width: 900px) {
    .site-footer .footer-grid { 
        flex-direction: row; 
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem; 
    }
    .footer-column { padding: 0; }
    .footer-brand { 
        text-align: left;
        flex: 1;
    }
    .footer-contact { 
        text-align: center;
        flex: 1;
    }
    .footer-links { 
        text-align: right;
        flex: 1;
    }
    .social { width:36px; height:36px; }
    .footer-bottom { flex-direction: column; align-items: center; }
    .social-bottom { margin-top: 0.5rem; }
}

@media (max-width: 768px) {
    .site-footer .footer-grid { 
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-brand { 
        text-align: center;
        max-width: 100%;
    }
    .footer-contact { 
        text-align: center;
    }
    .footer-links { 
        text-align: center;
    }
}

/* Modal (Repair booking) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--card-bg);
    border-radius: 10px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    /* allow modal to scroll internally on small screens */
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* When modal is open, lock body scroll to prevent background from moving */
body.modal-open {
    overflow: hidden;
}

.modal .modal-content { padding: 1.25rem 1.5rem; }
.modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.modal-card { background: var(--bg-secondary); padding: 0.9rem; border-radius: 8px; margin-bottom: 0.9rem; border-left: 4px solid var(--accent-color); }
.modal-card label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.modal-card input, .modal-card select { width: 100%; padding: 0.6rem; border: 1px solid var(--border-color); border-radius: 6px; }

.modal-actions { text-align: right; margin-top: 0.5rem; }

.modal-success { text-align: center; padding: 1.25rem; }

@media (max-width: 480px) {
    .modal { max-width: 100%; }
    .modal-close { right: 12px; top: 8px; }
}


/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-brand .logo {
        height: 40px;
    }
    
    .nav-brand .brand-text .brand-small {
        font-size: 0.8rem;
    }
    
    .nav-brand .brand-text .rekreotech {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .device-item {
        padding: 1rem 0.5rem;
    }
    
    .device-image {
        width: 50px;
        height: 50px;
    }
    
    .device-name {
        font-size: 0.85rem;
    }
    
    .apple-info h2 {
        font-size: 1.5rem;
    }
    
    .apple-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .feature {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        margin: 0;
        padding: 1.5rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
    
    .modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal .modal-content {
        padding: 1rem;
    }
    
    .modal .submit-btn {
        width: 100%;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-bottom {
        justify-content: center;
    }
    
    .policy-selector {
        grid-template-columns: 1fr;
    }
    
    .toast, .contact-toast {
        right: 10px;
        left: 10px;
        top: 90px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .device-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .device-item {
        padding: 1rem;
        min-height: auto;
    }
    
    .device-image {
        width: 60px;
        height: 60px;
    }
    
    .apple-features {
        grid-template-columns: 1fr;
    }
    
    .nav-brand .brand-text h1 {
        font-size: 1rem;
    }
    
    .modal {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 8px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}