/* =========================
   CT Bedfordview Theme
   ========================= */

/* Brand Colours */
:root {
    --brand-green: #2e7d32; /* deep green */
    --brand-orange: #f57c00; /* vibrant orange */
    --light-grey: #f4f4f4;
    --dark-text: #222;

    /* If Bootstrap is loaded, override its primary color */
    --bs-primary: var(--brand-green);
}

/* Global Styles */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

/* Header - darker green + 3D effect */
header {
    background: #245d27; /* slightly darker than brand green */
    color: #fff;
    padding: 1rem 2rem;
    border-bottom: 3px solid #1b4a1e; /* darker edge for depth */
    box-shadow: inset 0 -2px 4px rgba(255,255,255,0.2), /* top highlight */
                0 2px 6px rgba(0,0,0,0.3); /* drop shadow */
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

nav {
    margin-top: 0.5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
    font-weight: bold;
}

nav a:hover {
    color: var(--brand-orange);
}

/* Hero Section */
.hero {
    background: url('/images/hero-banner.jpg') center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero-content h2, .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-orange);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service {
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--brand-orange);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service h3 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--brand-green);
}

.check {
    color: var(--brand-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Scoped link styles for services only */
.services a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: bold;
}

.services a:visited {
    color: var(--brand-green);
}

.services a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

.services a:active {
    color: var(--brand-orange);
}

.service p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Footer - darker green + 3D effect */
footer {
    background: #245d27;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-top: 3px solid #1b4a1e;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2),
                0 -2px 6px rgba(0,0,0,0.3);
}

footer a {
    color: var(--brand-orange);
    text-decoration: none;
}

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

/* Buttons (override Bootstrap if present) */
.btn-primary {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
}

/* =========================
   Contact Form Styling
   ========================= */

/* Wrapper panel for visibility boost */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 2rem auto 0 auto;
}

/* Form container */
.contact-form {
    max-width: 100%;
}

/* Form groups */
.contact-form .form-group {
    margin-bottom: 1.2rem;
}

/* Labels */
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark-text);
}

/* Inputs & Textareas */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--brand-orange);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    box-shadow: 0 0 6px rgba(0,0,0,0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 8px rgba(46,125,50,0.4);
}

/* Required asterisk */
.contact-form .required {
    color: var(--brand-orange);
}

/* Submit button */
.contact-form button.btn-primary {
    background-color: var(--brand-green);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.contact-form button.btn-primary:hover {
    background-color: var(--brand-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}