/*
Theme Name: MANF INFINITY
Theme URI: https://manfinfinity.eu
Author: MANF INFINITY LTD
Author URI: https://manfinfinity.eu
Description: A professional, corporate, gold-themed WordPress theme built for MANF INFINITY LTD — a business, management and technical consultancy firm. Fully responsive (mobile-first) with a gold colour palette, custom page templates for Home, About, Services and Contact, and clean modern typography.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manfinfinity
Tags: business, corporate, consultancy, gold, responsive, custom-menu, featured-images, translation-ready
*/

/* =========================================================================
   MANF INFINITY LTD — Main Stylesheet
   Gold palette:
     --gold        #D4AF37  (primary)
     --gold-dark   #A67C00  (dark gold)
     --gold-light  #F0E080  (light gold)
     --ink         #1C1C1C  (near-black background)
     --white       #FAFAFA  (off-white)
   ========================================================================= */

:root {
    --gold: #D4AF37;
    --gold-dark: #A67C00;
    --gold-light: #F0E080;
    --ink: #1C1C1C;
    --ink-soft: #2a2a2a;
    --white: #FAFAFA;
    --grey: #6b6b6b;
    --grey-light: #ececec;
    --card-bg: #ffffff;
    --max-width: 1180px;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.14);
    --transition: all 0.28s ease;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-head: 'Georgia', 'Times New Roman', serif;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

a:hover,
a:focus {
    color: var(--gold);
}

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 84px 0;
}

.section--tight { padding: 56px 0; }

.section--ink {
    background: var(--ink);
    color: var(--white);
}

.section--ink h1,
.section--ink h2,
.section--ink h3 { color: var(--white); }

.section--grey { background: var(--grey-light); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}

.section-head .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 14px;
    font-family: var(--font-body);
}

.section-head p {
    color: var(--grey);
    font-size: 1.08rem;
}

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

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    border: 2px solid var(--gold);
    background: var(--gold);
    color: var(--ink);
    transition: var(--transition);
    text-align: center;
}

.btn:hover,
.btn:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn--outline:hover {
    background: var(--gold);
    color: var(--ink);
}

.btn--lg { padding: 17px 44px; font-size: 1.05rem; }

/* -------------------------------------------------------------------------
   Header / Navigation
   ------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ink);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo-link img {
    max-height: 52px;
    width: auto;
}

.site-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.site-title a {
    color: var(--white);
    text-transform: uppercase;
}

.site-title a .brand-accent { color: var(--gold); }

.site-description {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* Primary nav */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.main-navigation li { position: relative; }

.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--gold);
}

.main-navigation .current-menu-item > a {
    background: rgba(212, 175, 55, 0.12);
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--ink-soft);
    min-width: 210px;
    flex-direction: column;
    padding: 8px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.main-navigation li:hover > ul { display: flex; }

.main-navigation ul ul a { padding: 8px 14px; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    width: 46px;
    height: 46px;
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px auto;
    background: var(--gold);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1C1C1C 0%, #2a2a2a 60%, #3a3320 100%);
    color: var(--white);
    padding: 120px 0 130px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212,175,55,0.28) 0%, rgba(212,175,55,0) 70%);
    border-radius: 50%;
}

.hero .container { position: relative; z-index: 2; max-width: 900px; }

.hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 {
    color: var(--white);
    font-size: 3.4rem;
    max-width: 15ch;
}

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

.hero p.lead {
    font-size: 1.25rem;
    color: #dcdcdc;
    max-width: 60ch;
    margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   Services grid
   ------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 38px 32px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    transition: var(--transition);
}

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

.service-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-head);
}

.service-card h3 { margin-bottom: 12px; }

.service-card p { color: var(--grey); margin-bottom: 0; }

/* Detailed services (page-services) */
.service-detail {
    display: flex;
    gap: 28px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
    border-left: 5px solid var(--gold);
}

.service-detail .num {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-head);
}

.service-detail h3 { margin-bottom: 10px; }
.service-detail p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   About snippet
   ------------------------------------------------------------------------- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-split .panel {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius);
    color: var(--ink);
    padding: 48px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
}

.about-split .panel h3 { color: var(--ink); font-size: 1.8rem; }

.stat-row { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; }
.stat-row .stat .num { font-size: 2.2rem; font-weight: 800; font-family: var(--font-head); }
.stat-row .stat .label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

.value-list { list-style: none; padding: 0; margin: 22px 0 0; }
.value-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}
.value-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-dark);
    font-weight: 800;
}

/* -------------------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--ink);
    text-align: center;
    padding: 68px 0;
}

.cta-banner h2 { color: var(--ink); margin-bottom: 12px; }
.cta-banner p { font-size: 1.12rem; margin-bottom: 28px; }
.cta-banner .btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cta-banner .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
}

.contact-info-card h3 { color: var(--gold); }

.contact-info-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-info-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-info-list .ci-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 2px;
}
.contact-info-list a { color: var(--white); }
.contact-info-list a:hover { color: var(--gold); }

/* Form styling (Contact Form 7 & default) */
.wpcf7-form p { margin-bottom: 18px; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

textarea { min-height: 150px; resize: vertical; }

.wpcf7-submit,
input[type="submit"],
button[type="submit"] {
    background: var(--gold);
    color: var(--ink);
    border: 2px solid var(--gold);
    padding: 13px 34px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.wpcf7-submit:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

/* -------------------------------------------------------------------------
   Page header (interior pages)
   ------------------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, #1C1C1C 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 72px 0;
    text-align: center;
    position: relative;
}
.page-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .breadcrumb { color: var(--gold-light); font-size: 0.9rem; }
.page-hero .breadcrumb a { color: var(--gold-light); }

/* -------------------------------------------------------------------------
   Content / blog
   ------------------------------------------------------------------------- */
.content-area { padding: 72px 0; }

.site-main.has-sidebar,
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 48px;
}

article.post,
article.page {
    margin-bottom: 40px;
}

.entry-header { margin-bottom: 22px; }
.entry-title { font-size: 2rem; }
.entry-title a { color: var(--ink); }
.entry-title a:hover { color: var(--gold-dark); }

.entry-meta {
    font-size: 0.86rem;
    color: var(--grey);
    margin-bottom: 14px;
}
.entry-meta span { margin-right: 16px; }

.entry-content { margin-bottom: 20px; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }

.entry-content blockquote {
    border-left: 4px solid var(--gold);
    margin: 1.4em 0;
    padding: 6px 24px;
    background: var(--grey-light);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-thumbnail img { border-radius: var(--radius); margin-bottom: 20px; }

.read-more { font-weight: 700; }

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 9px 15px;
    border-radius: 6px;
    background: var(--grey-light);
    color: var(--ink);
    font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--gold);
    color: var(--ink);
}

/* -------------------------------------------------------------------------
   Sidebar / widgets
   ------------------------------------------------------------------------- */
.widget {
    background: var(--card-bg);
    padding: 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-light);
}
.widget ul li:last-child { border-bottom: 0; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #c9c9c9;
    padding-top: 62px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 46px;
}

.site-footer h4 {
    color: var(--white);
    margin-bottom: 18px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: var(--gold);
}

.site-footer .footer-brand .site-title a { color: var(--white); }
.site-footer .footer-brand p { color: #a9a9a9; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: var(--gold); }

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-contact .ci-label { color: var(--gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

.site-info {
    border-top: 1px solid #333;
    padding: 22px 0;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.site-info a { color: var(--gold); }

/* -------------------------------------------------------------------------
   404 & no results
   ------------------------------------------------------------------------- */
.error-404, .no-results {
    text-align: center;
    padding: 40px 0;
}
.error-404 .huge {
    font-size: 7rem;
    font-family: var(--font-head);
    color: var(--gold);
    line-height: 1;
    margin: 0;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 99999;
    background: var(--gold);
    color: var(--ink);
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; }

/* -------------------------------------------------------------------------
   Responsive — mobile first breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .about-split { grid-template-columns: 1fr; }
    .site-main.has-sidebar,
    .content-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.4rem; }
    .section { padding: 60px 0; }

    /* Mobile navigation */
    .menu-toggle { display: block; }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ink);
        border-top: 3px solid var(--gold);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .main-navigation.toggled-on { max-height: 640px; }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 20px;
    }
    .main-navigation a { padding: 13px 10px; border-bottom: 1px solid #333; }

    .main-navigation ul ul {
        position: static;
        display: flex;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border-top: 0;
        padding-left: 14px;
    }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-widgets { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 80px 0 90px; }
    .service-detail { flex-direction: column; }
}
