/* --- GLOBAL STYLES & VARIABLES --- */
:root {
  --primary-color: #1abc9c;
  --secondary-color: #16a085;
  --accent-color: #e67e22;
  --light-gray: #ecf0f1;
  --dark-gray: #2c3e50;
  --text-color: #34495e;
  --white: #ffffff;
  --border-radius: 6px;
  --box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

/* --- CTA BUTTONS --- */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--primary-color);
}

.cta-button.outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.cta-button.glow:hover {
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}

.cta-button.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(26, 188, 156, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 188, 156, 0); }
}

/* --- HEADER & NAVIGATION --- */
.sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    transition: padding 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:not(.cta-button):hover {
    color: var(--primary-color);
}

nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:not(.cta-button):hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

#menu-toggle {
    display: none;
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 8rem 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}
.hero-buttons .cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: var(--light-gray);
}

.highlight-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-points li {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--box-shadow);
}

.highlight-points i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* --- WHY US SECTION --- */
.why-us-section {
    background-color: var(--white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-top: 4px solid var(--primary-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- SERVICES SECTION --- */
.services-section {
    background-color: var(--light-gray);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-btn:hover {
    background-color: #e2e8f0;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: fade-in 0.5s ease-in-out;
}

.tab-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tab-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tab-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.service-cta {
    text-align: center;
    margin-top: 2rem;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: var(--white);
    text-align: center;
}

.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.testimonial {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial .stars {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial cite {
    font-weight: bold;
    color: var(--primary-color);
}

/* --- FAQ SECTION --- */
.faq-section {
    background-color: var(--light-gray);
}

.accordion-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.2rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-gray);
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.2rem;
}

.accordion-body p {
    padding: 1rem 0;
    color: var(--text-color);
}

/* --- CONTACT & NEWSLETTER SECTION --- */
.contact-section, .newsletter-section {
    background-color: var(--white);
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group, .form-row {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-row input {
    flex: 1;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-group input {
    width: auto;
}
.checkbox-group label {
    font-size: 0.9rem;
}

.confirmation-message {
    max-width: 700px;
    margin: 2rem auto 0;
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
    border: 1px solid #c3e6cb;
    animation: fade-in 0.6s ease-out;
}

.newsletter-card {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.newsletter-card form {
    background: var(--white);
    margin-top: 2rem;
}

/* --- LEGAL SECTION --- */
.legal-section {
    background-color: var(--light-gray);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.legal-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-card h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- FOOTER SECTION --- */
footer {
    background-color: var(--dark-gray);
    color: #ccc;
    padding-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-container h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-container ul {
    list-style: none;
}

.footer-container a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    line-height: 2;
}

.footer-container a:hover {
    color: var(--accent-color);
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 15px;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--white);
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --- ANIMATION ON SCROLL --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-slide-up {
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .hero-content h2 { font-size: 1.2rem; }

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 10px;
    }

    #menu-toggle:checked ~ ul {
        display: flex;
    }

    .header-container {
        position: relative;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row input {
        width: 100%;
    }
    
    .tab-nav {
        flex-direction: column;
        align-items: stretch;
    }
}
/* Modal styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}
