/*
Theme Name: In Service Consultancy
Theme URI: https://in-service.org
Author: Amber O'Brien
Author URI: https://in-service.org
Description: Custom theme for In Service Consultancy - Implementing Innovative Operations. Operations management consulting by Amber O'Brien.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: in-service-consultancy
*/

/* ================================
   CSS Reset & Base Styles
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #1A1A1A;
    line-height: 1.7;
    font-size: 17px;
    background-color: #FFFFFF;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ================================
   Typography
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: #1A1A1A;
}

.section-title.center {
    text-align: center;
}

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

    h2, .section-title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* ================================
   Buttons
   ================================ */

.btn-primary, .btn-hero, .btn-learn-more {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: #D97745;
    color: white;
}

.btn-primary:hover {
    background-color: #C25F2E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 69, 0.3);
}

.btn-hero {
    background-color: #7A9B7A;
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
}

.btn-hero:hover {
    background-color: #5F7F5F;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(122, 155, 122, 0.3);
}

.btn-learn-more {
    background-color: transparent;
    color: #D97745;
    border: 2px solid #D97745;
    padding: 12px 30px;
}

.btn-learn-more:hover {
    background-color: #D97745;
    color: white;
}

/* ================================
   Navigation
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo {
    height: 60px;
    width: auto;
}

.tagline {
    font-size: 0.75rem;
    color: #4A4A4A;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #1A1A1A;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:not(.btn-primary):hover {
    color: #D97745;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #1A1A1A;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ================================
   Hero Section
   ================================ */

.hero {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, #F9F7F4 0%, #FFF5EE 100%);
}

.hero-content {
    width: 50%;
    padding-left: 80px;
}

.hero-image {
    width: 50%;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-style: italic;
    color: #D97745;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4A4A4A;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 3rem;
    color: #1A1A1A;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease both;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.5s;
}

.btn-hero {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.professional-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1s ease;
}

@media (max-width: 968px) {
    .hero {
        padding-top: 180px;
        min-height: auto;
    }

    .hero-content {
        width: 100%;
        padding: 40px 20px;
    }

    .hero-image {
        width: 100%;
        height: 400px;
    }

    .hero-greeting {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ================================
   Intro Section
   ================================ */

.intro {
    padding: 120px 0;
    background-color: #FFFFFF;
}

.intro-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 4rem;
}

.intro-card {
    flex: 1 1 45%;
    min-width: 280px;
    background-color: #F9F7F4;
    padding: 50px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.intro-card h3 {
    color: #D97745;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.emphasis {
    font-style: italic;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .intro {
        padding: 60px 0;
    }

    .intro-grid {
        gap: 30px;
    }

    .intro-card {
        flex: 1 1 100%;
        padding: 30px;
    }
}

/* ================================
   Services Section
   ================================ */

.services {
    padding: 120px 0;
    background: linear-gradient(135deg, #FFF5EE 0%, #F9F7F4 100%);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.service-card {
    flex: 1 1 30%;
    min-width: 250px;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: #D97745;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #D97745;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #7A9B7A;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.service-card p {
    color: #4A4A4A;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

@media (max-width: 968px) {
    .service-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 640px) {
    .services {
        padding: 60px 0;
    }

    .service-card {
        flex: 1 1 100%;
    }
}

/* ================================
   Values Section
   ================================ */

.values {
    padding: 120px 0;
    background-color: #FFFFFF;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 4rem;
}

.value-card {
    flex: 1 1 45%;
    min-width: 280px;
    padding: 40px;
    background: linear-gradient(135deg, #FFF5EE 0%, #F9F7F4 100%);
    border-radius: 20px;
    border-left: 5px solid #D97745;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.value-card h3 {
    color: #7A9B7A;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.value-card p {
    color: #4A4A4A;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .values {
        padding: 60px 0;
    }

    .values-grid {
        gap: 30px;
    }

    .value-card {
        flex: 1 1 100%;
    }
}

/* ================================
   Resources Section
   ================================ */

.resources {
    padding: 120px 0;
    background: linear-gradient(135deg, #FFF5EE 0%, #F9F7F4 100%);
}

.resources-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #4A4A4A;
    line-height: 1.8;
}

.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 4rem;
}

.resource-card {
    flex: 1 1 30%;
    min-width: 250px;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: #7A9B7A;
}

.resource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #7A9B7A;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
    color: #D97745;
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1A1A1A;
}

.resource-card p {
    color: #4A4A4A;
    margin-bottom: 2rem;
    line-height: 1.7;
    flex-grow: 1;
}

.btn-resource {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #7A9B7A;
    border: 2px solid #7A9B7A;
    font-size: 16px;
}

.btn-resource:hover {
    background-color: #7A9B7A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 155, 122, 0.3);
}

@media (max-width: 968px) {
    .resources-grid {
        gap: 30px;
    }

    .resource-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .resources {
        padding: 60px 0;
    }

    .resource-card {
        padding: 30px;
    }
}

/* ================================
   About Section
   ================================ */

.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #F9F7F4 0%, #FFF5EE 100%);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    align-items: center;
}

.about-image {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    color: #D97745;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text p {
    color: #4A4A4A;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 968px) {
    .about {
        padding: 60px 0;
    }

    .about-content {
        gap: 40px;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-text {
        width: 100%;
    }
}

/* ================================
   Contact Section
   ================================ */

.contact {
    padding: 120px 0;
    background-color: #7A9B7A;
    color: white;
    text-align: center;
}

.contact-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: white;
}

.contact-lead {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact-content h2 {
        font-size: 2rem;
    }
}

/* ================================
   Footer
   ================================ */

.footer {
    padding: 40px 0;
    background-color: #1A1A1A;
    color: white;
    text-align: center;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ================================
   Modal
   ================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 60px;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #4A4A4A;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #D97745;
    background-color: #F9F7F4;
}

.modal-body h3 {
    color: #D97745;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.modal-body p {
    color: #4A4A4A;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px;
    }
}

/* ================================
   Animations
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
