/* Mobile CSS for screens up to 320px width
   Place this file in the site root and include with media="(max-width: 320px)".
*/

/* Base adjustments */
html,
body {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0.5rem 0.5rem 2rem 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.4;
}

/* Container
   Make container nearly full-width on very small screens */
.container {
    width: 95% !important;
    max-width: 320px;
    margin: 0 auto;
}

/* Reduce large paddings */
.page-section {
    padding: 1.25rem 0 !important;
}

/* Header */
#header,
nav {
    position: static !important;
    box-shadow: none !important;
}

.nav-wrapper {
    gap: 0.5rem;
}

.logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1rem;
}

/* Collapse nav menu and show toggle */
.nav-menu {
    display: none !important;
}

.menu-toggle {
    display: flex !important;
}

/* Hero */
.hero-slider {
    height: 260px !important;
}

.hero-content h1 {
    font-size: 1.6rem !important;
}

.hero-content p {
    font-size: 0.95rem !important;
}

.hero-content {
    padding: 1rem !important;
}

/* Hero images */
.hero-slide img {
    height: 260px;
    object-fit: cover;
}

/* Services grid - single column */
.services-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
}

.service-card {
    display: block;
}

.service-card-image {
    height: 120px !important;
}

.service-card-content {
    padding: 0.75rem !important;
}

.service-card-content h3 {
    font-size: 1.05rem !important;
}

.service-card-content p {
    font-size: 0.95rem !important;
}

/* Buttons full-width and touch-friendly */
.btn-primary,
.menu-toggle,
button {
    width: 100% !important;
    padding: 0.75rem 0.8rem !important;
    font-size: 1rem !important;
}

.btn-inline {
    display: block;
    margin-top: 1rem;
}

/* Forms */
.contact-form input,
.contact-form textarea,
input,
textarea {
    width: 100% !important;
    padding: 0.6rem !important;
    font-size: 1rem !important;
}

.form-group {
    margin-bottom: 0.75rem !important;
}

/* Breadcrumbs */
.breadcrumb-list {
    font-size: 13px !important;
}

/* Footer */
.admin-footer-note,
.center-note {
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

/* Images */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Tables and lists */
.table-responsive {
    overflow-x: auto;
}

/* Reduce large text blocks */
.section-title {
    font-size: 1.25rem !important;
}

.page-title {
    font-size: 1.25rem !important;
}

/* Utility adjustments */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center !important;
}

.visually-hidden-img {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Specific admin/public adjustments */
.admin-container .container {
    padding: 1rem !important;
}

/* Accessibility: increase touch targets */
a,
.nav-link {
    padding: 0.4rem 0.4rem !important;
    display: inline-block;
}

/* End of mobile.css */