/*
Theme Name: New South
Theme URI: https://newsouthstrategy.com
Author: Jason
Author URI: https://newsouthstrategy.com
Description: Custom WordPress theme for New South LLC - Business consulting services
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newsouth
*/

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

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

:root {
    /* Brand Colors — pulled from logo */
    --navy: #1a3354;
    --navy-mid: #243d5e;
    --navy-light: #2d4f72;
    --sage: #859a86;
    --sage-dark: #6b7d6c;
    --sage-light: #a8bca9;

    /* Luxury Cream Palette */
    --cream: #f6f0e4;
    --cream-light: #faf7f2;
    --cream-dark: #ede5d5;
    --cream-border: #ddd0b8;

    /* Gold Accent — Southern luxury */
    --gold: #c4a76a;
    --gold-dark: #a88a50;
    --gold-light: #d4bc85;

    /* Text */
    --white: #ffffff;
    --gray-text: #3d3a35;
    --gray-mid: #6b6560;
    --gray-light: #d4cfc7;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --section-padding: 90px 0;
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Linen texture — subtle crosshatch for cream sections */
    --linen-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0L8 8M8 0L0 8' stroke='rgba(133%2C154%2C134%2C0.07)' stroke-width='0.75' fill='none'/%3E%3C/svg%3E");
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.75;
    color: var(--gray-text);
    background: var(--cream-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

h2 {
    font-size: 2.75rem;
    font-weight: 600;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.0625rem;
    color: var(--gray-text);
}

strong {
    font-weight: 600;
    color: var(--navy);
}

/* Gold ornamental divider */
.gold-rule {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem 0;
    display: block;
}

.gold-rule-center {
    margin: 1.5rem auto;
}

/* ===========================
   LAYOUT & CONTAINERS
   =========================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding);
}

/* ===========================
   HEADER & NAVIGATION
   — Warm cream so the dark navy logo is crisp
   =========================== */

.site-header {
    background: var(--cream-light);
    border-bottom: 1px solid var(--cream-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(26, 51, 84, 0.07);
}

/* Thin gold accent line under header */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
    opacity: 0.55;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.site-logo {
    height: 92px;
    width: auto;
}

/* WordPress custom logo wrapper */
.custom-logo-link img {
    height: 92px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav ul a {
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
}

.main-nav ul a:hover {
    color: var(--gold-dark);
}

.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav ul a:hover::after {
    width: 100%;
}

/* Nav CTA button — gold outline, not a solid dark block */
.main-nav .btn-primary {
    background: transparent;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.main-nav .btn-primary:hover {
    background: var(--gold);
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

/* ===========================
   BUTTONS & CTAs
   =========================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--sage-dark);
    color: var(--cream-light);
    border-color: var(--sage-dark);
}

.btn-primary:hover {
    background: var(--sage);
    border-color: var(--sage);
    color: var(--cream-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(107, 125, 108, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--cream-light);
    transform: translateY(-1px);
}

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

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 138, 80, 0.3);
}

/* ===========================
   HERO SECTION
   — Deep navy with dot texture & subtle magnolia watermark
   =========================== */

.hero {
    /* Sage green from the logo — warm, Southern, not corporate */
    background-color: var(--sage);
    /* Subtle curved lines texture — soft organic feel */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600'%3E%3Cpath d='M-100,300 Q125,180 350,300 Q575,420 800,300 Q900,255 1000,300' fill='none' stroke='rgba(255%2C255%2C255%2C0.03)' stroke-width='1.5'/%3E%3Cpath d='M-100,180 Q125,60 350,180 Q575,300 800,180 Q900,135 1000,180' fill='none' stroke='rgba(255%2C255%2C255%2C0.025)' stroke-width='1'/%3E%3Cpath d='M-100,420 Q125,300 350,420 Q575,540 800,420 Q900,375 1000,420' fill='none' stroke='rgba(255%2C255%2C255%2C0.025)' stroke-width='1'/%3E%3Cpath d='M-100,60 Q125,-60 350,60 Q575,180 800,60 Q900,15 1000,60' fill='none' stroke='rgba(255%2C255%2C255%2C0.015)' stroke-width='0.75'/%3E%3Cpath d='M-100,540 Q125,420 350,540 Q575,660 800,540 Q900,495 1000,540' fill='none' stroke='rgba(255%2C255%2C255%2C0.015)' stroke-width='0.75'/%3E%3C/svg%3E");
    background-size: 900px 600px;
    background-repeat: repeat-x;
    background-position: center center;
    color: var(--navy);
    padding: 170px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

/* Cream outlined button — sits well on sage green */
.hero .btn-primary {
    background: transparent;
    color: var(--cream-light);
    border-color: rgba(250, 247, 242, 0.6);
}

.hero .btn-primary:hover {
    background: rgba(250, 247, 242, 0.15);
    border-color: var(--cream-light);
    color: var(--cream-light);
    transform: translateY(-1px);
    box-shadow: none;
}

.hero h1 {
    color: var(--cream-light);
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-style: italic;
    font-weight: 600;
}

.hero p {
    font-size: 1.1875rem;
    color: var(--cream-dark);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    font-weight: 400;
    max-width: 620px;
}

/* ===========================
   PROBLEM / INTRO SECTION
   — Warm linen cream texture
   =========================== */

.problem-section {
    background-color: var(--cream);
    background-image: var(--linen-texture);
    border-top: 1px solid var(--cream-border);
    border-bottom: 1px solid var(--cream-border);
}

.problem-section h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--navy);
}

.problem-section strong {
    color: var(--navy);
    font-style: normal;
}

/* ===========================
   SERVICES OVERVIEW (Home)
   =========================== */

.services-overview {
    background: var(--cream-light);
}

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

.service-card {
    padding: 2.25rem 2.25rem 2rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--cream-border);
    border-top: 3px solid var(--sage);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 51, 84, 0.1);
}

.service-card h3 {
    margin-bottom: 0.875rem;
    color: var(--navy);
    font-size: 1.625rem;
}

.service-card p {
    color: var(--gray-mid);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===========================
   WHO IT'S FOR SECTION
   =========================== */

.who-section {
    background-color: var(--cream);
    background-image: var(--linen-texture);
    border-top: 1px solid var(--cream-border);
    border-bottom: 1px solid var(--cream-border);
}

.who-section h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--navy);
}

.who-section p {
    font-size: 1.125rem;
    line-height: 1.85;
}

/* ===========================
   ABOUT PAGE
   =========================== */

.about-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-photo {
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(26, 51, 84, 0.12);
    border: 1px solid var(--cream-border);
}

.about-photo img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.why-newsouth {
    background-color: var(--cream);
    background-image: var(--linen-texture);
    border-top: 1px solid var(--cream-border);
    border-bottom: 1px solid var(--cream-border);
}

.my-approach {
    background-color: #eaf0ea;
    border-top: 1px solid rgba(133, 154, 134, 0.2);
    border-bottom: 1px solid rgba(133, 154, 134, 0.2);
}

/* ===========================
   SERVICES PAGE
   =========================== */

.service-block {
    background: var(--white);
    padding: 2.75rem 2.75rem 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--cream-border);
    border-left: 4px solid var(--sage);
    box-shadow: 0 2px 12px rgba(26, 51, 84, 0.05);
}

.service-block h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.how-it-works {
    background-color: var(--cream-light);
}

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

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--cream-border);
    border-radius: 3px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--cream-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.625rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--gold);
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.125rem;
    margin-bottom: 1.25rem;
    border: 1.5px solid var(--cream-border);
    border-radius: 2px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gray-text);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--cream-light);
}

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

.contact-info h3 {
    margin-bottom: 1.75rem;
    font-style: italic;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail strong {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--navy);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--cream-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border: 1px solid transparent;
}

.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold-dark);
}

/* ===========================
   FOOTER
   — Deep navy with cream text
   =========================== */

footer {
    background: var(--sage-dark);
    color: var(--cream-dark);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0 0 0.75rem;
}

/* Single compact row */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-location {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.footer-divider {
    opacity: 0.35;
}

.footer-left a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.footer-left a:hover {
    color: var(--white);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.footer-right a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-right a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.625rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    letter-spacing: 0.03em;
}

/* ===========================
   SECTION TITLE STYLE
   =========================== */

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-mid);
    font-size: 1.0625rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Gold rule centered under section titles */
.section-title + .gold-rule {
    margin: 1rem auto 3rem;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

@media (max-width: 900px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 65px 0;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .header-inner {
        padding: 0.875rem 1.25rem;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream-light);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 8px 20px rgba(26, 51, 84, 0.1);
        border-top: 2px solid var(--gold);
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav .btn {
        display: none;
    }

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

    .hero {
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.0625rem;
    }

    .services-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-intro,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact a {
        display: block;
        margin: 0.375rem 0;
    }

    .footer-social {
        justify-content: center;
    }

    .section-title { font-size: 2.125rem; }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

.text-gold {
    color: var(--gold-dark);
}

.italic {
    font-style: italic;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   WPFORMS OVERRIDES
   =========================== */

/* Remove WPForms default container padding */
.wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* Field labels */
.wpforms-form .wpforms-field-label {
    font-family: var(--font-heading) !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    color: var(--navy) !important;
    margin-bottom: 0.375rem !important;
}

/* Inputs and textareas */
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form input[type="tel"],
.wpforms-form input[type="url"],
.wpforms-form input[type="number"],
.wpforms-form select,
.wpforms-form textarea {
    width: 100% !important;
    background-color: var(--cream-light) !important;
    border: 1px solid var(--cream-border) !important;
    border-radius: 4px !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--font-primary) !important;
    font-size: 0.9375rem !important;
    color: var(--navy) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form input[type="tel"]:focus,
.wpforms-form input[type="url"]:focus,
.wpforms-form input[type="number"]:focus,
.wpforms-form select:focus,
.wpforms-form textarea:focus {
    outline: none !important;
    border-color: var(--sage) !important;
    box-shadow: 0 0 0 3px rgba(133,154,134,0.15) !important;
}

/* Placeholder text */
.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder {
    color: var(--gray-mid) !important;
    opacity: 0.7 !important;
}

/* Textarea height */
.wpforms-form textarea {
    min-height: 130px !important;
    resize: vertical !important;
}

/* Field spacing */
.wpforms-form .wpforms-field {
    padding: 0 0 1.25rem !important;
}

/* Submit button */
.wpforms-form .wpforms-submit-container {
    padding: 0.5rem 0 0 !important;
}

.wpforms-form .wpforms-submit,
.wpforms-form button[type="submit"] {
    width: 100% !important;
    background-color: var(--sage-dark) !important;
    color: var(--cream-light) !important;
    border: 1.5px solid var(--sage-dark) !important;
    border-radius: 4px !important;
    padding: 0.8125rem 2rem !important;
    font-family: var(--font-heading) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.wpforms-form .wpforms-submit:hover,
.wpforms-form button[type="submit"]:hover {
    background-color: var(--sage) !important;
    border-color: var(--sage) !important;
}

/* Success / error messages */
.wpforms-confirmation-container-full,
.wpforms-error-container {
    border-radius: 4px !important;
    padding: 1rem 1.5rem !important;
    font-family: var(--font-heading) !important;
    font-size: 1.0625rem !important;
    text-align: center !important;
}

.wpforms-confirmation-container-full {
    background: var(--cream) !important;
    border: 1px solid var(--gold) !important;
    color: var(--navy) !important;
}

.wpforms-error-container {
    background: #fdf0f0 !important;
    border: 1px solid #d9a0a0 !important;
    color: #7a2a2a !important;
}

/* Inline field validation errors */
.wpforms-form label.wpforms-error {
    color: #b94a48 !important;
    font-family: var(--font-primary) !important;
    font-size: 0.8125rem !important;
    margin-top: 0.25rem !important;
}
