/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    color: #B41402; /* Reynolds Law Firm red */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vollkorn', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

ul.normal {
  margin-top:1rem;
  list-style-image:url('../images/arrow.png');
}
ul.normal li {
  margin-left:2rem;
}

/* Two-Column Layout */
.two-column-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.column-50 {
    width: 50%;
    padding: 1rem;
    box-sizing: border-box;
}

.column-33 {
    width: 33%;
    padding: 1rem;
    box-sizing: border-box;
}

.column-33 img, .column-50 img, .column-66 img {

  width:100%;
  object-fit: contain;
}

.column-66 {
    width: 66%;
    padding: 1rem;
    box-sizing: border-box;
}

.column-50 h2, .column-50 p {
    margin-bottom: 1rem;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    padding: 0.5rem 1rem;
    background: #f9f9f9;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: #B41402;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    max-height: 150px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
}

.phone {
    /*display: flex;*/
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #B41402;
}
.click-to-call {
    font-size: 1.75rem;
}

.phone img {
    max-height: 24px;
}

.social, .locations {
    font-size: 0.9rem;
    color: #333;
}

.social a {
    color: #B41402;
}

/* Hero Section (Parallax) */
.hero {
    position: relative;
    height: 40vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: top;
    background-attachment: fixed; /* Parallax effect */
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5); /* Semi-opaque overlay for readability */
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom:0;
}

/* Sections */
.highlight, .services, .about, .contact, .cta {
    padding: 4rem 0;
    background: #fff;
}

.highlight {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

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

.service-card {
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    max-width: 100px;
    margin-bottom: 1rem;
}

.service-card h3 a {
    color: #333;
    text-decoration: none;
}

.service-card h3 a:hover {
    color: #B41402;
}

.services-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.service-column {
    flex: 1;
    text-align: left;
}

.service-column ul {
    list-style-image: url('../images/check.png');
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

section.about {
  background:#fafafa;
  box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);
  padding-bottom:60px;
}
.contact-content{
  padding-top:40px;
}

/* Call to Action */
.cta {
    position: relative;
    height: 35vh;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem 0;
    background-image: url('../images/129587744.jpg');
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */

    z-index: -1;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.cta-text {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Vollkorn', serif;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info .button {
    display: inline-block;
    margin-top: 1rem;
}

/* Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.form-group label span {
    color: #B41402;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.name-fields {
    display: flex;
    gap: 1rem;
}

.name-fields input {
    flex: 1;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #B41402;
    border: 2px solid #B41402;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background: #B41402;
    color: #fff;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #B41402;
    color: #fff;
    padding: 2rem 0;
}

.footer .container {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Vollkorn', serif;
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-nav li a {
    color: #fff;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
}

.footer-address, .footer-contact {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-copyright a, .footer a {
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header {
        position:relative;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo {
        width: 100%;
    }

    .contact-info {
        text-align: center;
    }

    .phone {
        justify-content: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #f9f9f9;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero, .cta {
        height: 50vh;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-info, .contact-form {
        width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    .hero, .cta {
        height: 30vh;
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 2rem;
    }

    .logo img {
        max-height: 120px;
    }

    .phone {
        font-size: 1rem;
    }

    .social, .locations {
        font-size: 0.8rem;
    }
    .locations {
        width:100%;
        text-align:center;
    }

    .footer-logo {
        font-size: 1.25rem;
    }
    .services-list {
        width:100%;
        gap: .5rem;
        overflow-x:hidden;
    }

    .two-column-container {
        flex-direction:column;
    }
    .column-33, .column-66, .column-50 {
        width:100%;
    }
}

/* Accessibility */
.nav-link:focus, .button:focus, .form-group input:focus, .form-group textarea:focus {
    outline: 2px solid #B41402;
    outline-offset: 2px;
}

.hamburger:focus {
    outline: 2px solid #B41402;
}

/* form errors */
.error-message {
    color: #B41402; /* Matches Reynolds Law Firm red */
    font-size: 0.9rem;
    margin-top: 0.25rem;
    font-family: 'Open Sans', sans-serif;
}

.error {
    border-color: #B41402 !important;
    background-color: #fff;
}

.valid {
    border-color: #4CAF50 !important; /* Green for valid, optional for visual feedback */
}

.form-group input.error,
.form-group textarea.error {
    border: 2px solid #B41402;
}

.form-group input.valid,
.form-group textarea.valid {
    border: 2px solid #4CAF50;
}
