/*
Theme Name: GOAT Intake
Theme URI: https://goatintake.com
Author: Jerry Schrader
Description: Custom built theme for Goat Intake
Version: 1.0
Text Domain: creative-agency
*/

/* ===== CSS Variables ===== */
:root {
    --color-primary: #1a4d2e;
    --color-dark-green: #2d5f3f;
    --color-light-green: #4a7c5e;
    --color-black: #0a0a0a;
    --color-dark-gray: #1a1a1a;
    --color-medium-gray: #2a2a2a;
    --color-light-gray: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== Header & Navigation ===== */
.site-header {
    background-color: var(--color-black);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin: 0 1.5rem;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Submenu Styles */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-dark-gray);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    padding: 1rem 0;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    margin: 0;
}

.main-navigation .sub-menu a {
    padding: 0.75rem 1.5rem;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--color-medium-gray);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 77, 46, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0;
    background-color: var(--color-black);
}

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

.service-card {
    background-color: var(--color-dark-gray);
    padding: 3rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(26, 77, 46, 0.3);
}

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

.service-card p {
    color: var(--color-light-gray);
    line-height: 1.8;
}

/* ===== About Section ===== */
.about-section {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-text h3 {
    color: var(--color-dark-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text .highlight {
    color: var(--color-primary);
}

/* ===== Blog Posts Section ===== */
.blog-section {
    padding: 5rem 0;
    background-color: var(--color-black);
}

.section-title {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 3rem;
}

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

.post-card {
    background-color: var(--color-dark-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 77, 46, 0.3);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    color: var(--color-light-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.post-content h3 a {
    color: var(--color-white);
}

.post-content h3 a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-light-gray);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-light-gray);
    padding: 3rem 0 1rem;
}

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

.footer-widget h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--color-light-gray);
}

.footer-widget a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-medium-gray);
    padding-top: 2rem;
    text-align: center;
}

/* ===== Single Post Styles ===== */
.single-post {
    padding: 5rem 0;
    margin-top: 70px;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    color: var(--color-black);
    margin-bottom: 1rem;
}

.post-thumbnail-single {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5rem;
}

/* ===== Archive Styles ===== */
.archive-header {
    padding: 5rem 0 2rem;
    margin-top: 70px;
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    text-align: center;
}

.archive-posts {
    padding: 5rem 0;
}

/* ===== Contact Page ===== */
.contact-section {
    padding: 5rem 0;
    margin-top: 70px;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem;
    background-color: var(--color-light-gray);
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 200px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--color-dark-green);
    transform: translateY(-2px);
}

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

.fade-in-up {
    animation: fadeInUp 1s ease;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-black);
        transition: left 0.3s ease;
        padding: 2rem;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
    }

    .main-navigation li {
        margin: 1rem 0;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--color-medium-gray);
        margin-top: 0.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* Logo and Phone Wrapper for Mobile */
.logo-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Header Phone Styling */
.header-phone .phone-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #ffffff;
    border-radius: 8px;
}

.header-phone .phone-link:hover {
    background-color: #ffffff;
    color: #1a4d2e;
}

.header-phone .phone-link svg {
    transition: transform 0.3s ease;
}

.header-phone .phone-link:hover svg {
    transform: scale(1.1);
}

/* Mobile: Show phone under logo, hide desktop version */
.header-phone-mobile {
    display: block;
    margin-top: 0.75rem;
}

.header-phone-desktop {
    display: none;
}

/* Desktop: Hide mobile version, show phone to the right */
@media (min-width: 992px) {
    .logo-phone-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .header-phone-mobile {
        display: none;
    }
    
    .header-phone-desktop {
        display: block;
        margin-left: 1.5rem;
    }
    
    .header-phone .phone-link {
        font-size: 1.125rem;
        padding: 10px 20px;
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

/* Footer Bottom Styling */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

.footer-phone {
    display: flex;
    align-items: center;
}

.footer-phone a:hover {
    color: #1a4d2e !important;
    text-decoration: underline !important;
}

/* Desktop: Side by side */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}
/* Mobile: Reduce hero section height */
@media (max-width: 767px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1.125rem;
    }
    
    .archive-header {
        padding: 3rem 0 1.5rem;
    }
    
    .archive-header h1 {
        font-size: 2rem;
    }
    
    .archive-header p {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.25rem;
    }
}

/* Desktop: Keep original height */
@media (min-width: 992px) {
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
}