/* ============================================
   SURROGACY.IE - MAIN CSS
   Primary stylesheet for surrogacy.ie website
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */

:root {
    /* Colors */
    --primary-color: #2D6A7E;
    --primary-dark: #1A4D5C;
    --secondary-color: #F4A261;
    --accent-color: #264653;
    --navy: #1A3A47;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;

    /* Fonts */
    --font-primary: "Inter", sans-serif;
    --font-serif: "DM Serif Display", serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Borders & Shadows */
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 4rem 0;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.navbar-brand {
    flex: 0 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 700;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu li a {
    color: var(--dark-gray);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e8923e;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-cta:hover {
    background-color: #e8923e;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #f0f9ff 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero .btn {
    margin-top: 1rem;
}

/* ============================================
   SECTION INTRO TEXT
   ============================================ */

.section-intro {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
    line-height: 1.8;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

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

.card {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* ============================================
   ACT CARDS (NUMBERED)
   ============================================ */

.act-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.act-card {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.act-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.act-card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.act-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.process-step p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* ============================================
   COST BREAKDOWN
   ============================================ */

.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cost-item {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.cost-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cost-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
    font-size: 0.95rem;
}

.cost-detail:last-of-type {
    border-bottom: none;
}

.cost-label {
    font-weight: 500;
    color: var(--dark-gray);
}

.cost-amount {
    color: var(--primary-color);
    font-weight: 600;
}

.cost-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 2px solid var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.cost-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1.5rem;
}

/* ============================================
   FAQ / ACCORDION
   ============================================ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition);
}

.faq-question:hover {
    background-color: #e8f4f8;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    background-color: var(--white);
    margin-bottom: 0;
    color: var(--dark-gray);
    line-height: 1.8;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    margin-bottom: 1rem;
}

.cta-container > p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: left;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 106, 126, 0.1);
}

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

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--medium-gray);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--medium-gray);
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
    }

    .nav-menu li a.active::after {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-grid,
    .act-cards,
    .process-steps,
    .cost-breakdown {
        grid-template-columns: 1fr;
    }

    .card-grid {
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cost-detail {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar-container {
        padding: 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-container h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .act-card,
    .process-step {
        padding: 1.5rem;
    }

    .cost-item {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
    }
}
