/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Header / Navigation */
header {
    background-color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.phone-nav {
    font-weight: bold;
    color: #28a745;
    text-decoration: none;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 40, 85, 0.8), rgba(0, 40, 85, 0.9)), url('images/hero.png') no-repeat 75% 25%/cover;
    color: white;
    padding: 80px 5%;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    margin: 10px;
    transition: background 0.3s;
}

.btn-call {
    background-color: #28a745;
    color: white;
}

.btn-call:hover {
    background-color: #218838;
}

.btn-quote {
    background-color: #ffc107;
    color: #212529;
}

.btn-quote:hover {
    background-color: #e0a800;
}

/* Services Section */
.services-container {
    padding: 60px 5%;
    text-align: center;
    background-color: white;
}

.services-container h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #002855;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background: rgb(245, 245, 246);
    padding: 0;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.service-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(160deg, #003366 0%, #0056b3 100%);
}

.service-card h3 {
    margin: 20px 30px 15px 30px;
    color: #0056b3;
    position: relative;
    z-index: 1;
}

.service-card p {
    margin: 0 30px 30px 30px;
}

/* Info/Trust Section */
.trust-section {
    background-color: #002855;
    color: white;
    padding: 50px 5%;
    text-align: center;
}

.trust-section h2 {
    margin-bottom: 20px;
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 30px;
    gap: 20px;
}

.trust-item {
    max-width: 280px;
    flex: 1 1 220px;
}

.trust-item h4 {
    font-size: 20px;
    color: #ffc107;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    padding: 60px 5%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    text-align: center;
    color: #002855;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.photo-box {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    container-type: inline-size;
}

.form-group .photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    background: transparent;
}

.photo-stage {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
}

.photo-placeholder {
    margin: 0;
    color: #888;
    font-size: 16px;
    font-weight: normal;
}

.attachment-preview {
    display: none;
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: min(54vw, 360px);
    object-fit: contain;
}

@supports (max-height: 60cqw) {
    .attachment-preview {
        max-height: 60cqw;
    }
}

.photo-box.has-photo .photo-placeholder {
    display: none;
}

.photo-box.has-photo .photo-stage {
    min-height: 0;
    padding: 12px;
    background: #f4f6f8;
}

.photo-box.has-photo .attachment-preview {
    display: block;
}

.photo-actions {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #ccc;
}

.photo-btn {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 10px 22px;
    text-align: center;
    background: #ffc107;
    color: #212529;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.photo-btn:hover {
    background: #e0a800;
}

.form-hint {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.form-hint-error {
    color: #b00020;
}

.submit-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #004085;
}

.honeypot {
    display: none !important;
}

/* Thank You Page */
.thanks-section {
    background: linear-gradient(rgba(0, 40, 85, 0.8), rgba(0, 40, 85, 0.9)), url('images/hero.png') no-repeat 75% 25%/cover;
    color: white;
    padding: 100px 5%;
    text-align: center;
    min-height: 60vh;
}

.thanks-section h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.thanks-section p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #222;
    color: #bbb;
    text-align: center;
    padding: 28px 5%;
    font-size: 14px;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 6px;
}

footer p {
    margin-bottom: 6px;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive adjustments */
@media (max-width: 600px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .btn { width: 100%; margin: 10px 0; }
    header { flex-direction: column; gap: 10px; text-align: center; }
}
