<?php
/**
 * Theme Name: Cola Papers
 * Description: Professional Academic Writing Service Theme
 * Version: 1.0.0
 * Author: Cola Papers Team
 * Text Domain: colapapers
 */

// This theme uses Tailwind CSS. 
// For this export, we rely on the compiled style.css or a CDN for simplicity in this mockup phase.
?>
/*
Theme Name: Cola Papers
Description: Professional Academic Writing Service Theme
Version: 1.0
Author: Cola Papers
*/

/* 
   Note: This theme relies on Tailwind CSS classes. 
   In a production WP theme, you would compile your Tailwind to this file.
   Below are the CSS variables used in the design.
*/

:root {
  --radius: 0.5rem;
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 142 76% 36%;
  --primary-foreground: 0 0% 100%;
  --secondary: 142 70% 95%;
  --secondary-foreground: 142 76% 36%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 0 84% 60%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 142 76% 36%;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.prose h2, .prose h3, .prose h4 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose blockquote {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
    border-left: 4px solid hsl(142 76% 36%); /* matches your green */
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

/* ===============================
   SERVICE SINGLE & ARCHIVE STYLES
   =============================== */

.single-service,
.services-archive {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem;
}

.service-header,
.archive-header {
  margin-bottom: 2.5rem;
}

.service-title,
.archive-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.archive-intro {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: hsl(var(--muted-foreground));
}

/* Service archive grid */
.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.service-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-title a {
  text-decoration: none;
  color: hsl(var(--foreground));
}

.service-excerpt {
  margin-top: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Pricing / FAQ alignment */
.pricing-box,
.faq,
.related-services {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}

.pricing-box h2,
.faq h2,
.related-services h3 {
  margin-bottom: 1rem;
}

/* ===============================
   SERVICE LAYOUT (CONTENT + SIDEBAR)
   =============================== */

/* Two-column wrapper (matches single.php pattern) */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 2.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem;
}

/* Main content */
.content-area {
  min-width: 0;
}

/* Sidebar */
.service-sidebar {
  align-self: flex-start;
}

/* Sidebar cards spacing */
.service-sidebar .pricing-box,
.service-sidebar .faq {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Related services below content (full width) */
.service-related-wrap {
  grid-column: 1 / -1;
  margin-top: 3.5rem;
}

/* ===============================
   ARCHIVE SIDEBAR SUPPORT (IF USED)
   =============================== */

.services-archive.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 2.5rem;
}

.services-archive .services-grid {
  grid-column: 1 / 2;
}

.services-archive .sidebar {
  grid-column: 2 / 3;
}

/* ===============================
   MOBILE RESPONSIVENESS
   =============================== */

@media (max-width: 1024px) {
  .content-with-sidebar,
  .services-archive.with-sidebar {
    grid-template-columns: 1fr;
  }

  .service-related-wrap {
    grid-column: auto;
  }
}

/* ===============================
   FAQ TYPOGRAPHY CONTROL
   =============================== */

/* FAQ questions */
.faq h3 {
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* FAQ answers (explicitly normal) */
.faq p {
  font-weight: 400;
  color: hsl(var(--foreground));
}

/* ================================
   HOMEPAGE BASE
================================ */

.homepage {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.homepage .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage section {
    position: relative;
}

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

.home-hero {
    background: linear-gradient(135deg, #0a2a43 0%, #124a7c 100%);
    color: #ffffff;
    padding: 90px 0 80px;
}

.home-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    max-width: 640px;
}

.hero-subtitle,
.home-hero p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 34px;
}

.hero-trust li {
    font-size: 15px;
    margin-bottom: 8px;
    opacity: 0.95;
}

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

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary,
.order-form button {
    background: #ff9800;
    color: #1a1a1a;
    padding: 14px 32px;
    border: none;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.35);
}

.btn-primary:hover,
.order-form button:hover {
    background: #ffab26;
    transform: translateY(-1px);
}

/* ================================
   ORDER FORM
================================ */

.order-form-section {
    background: #f5f7fb;
    padding: 60px 0 70px;
}

.order-form {
    background: #ffffff;
    padding: 26px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    box-shadow: 0 14px 40px rgba(15, 30, 60, 0.12);
}

.order-form select,
.order-form input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d6dbe3;
    background: #ffffff;
}

.order-form select:focus,
.order-form input:focus {
    border-color: #ff9800;
    outline: none;
}

/* ================================
   FEATURES
================================ */

.home-features {
    padding: 90px 0;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.features-grid h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.features-grid p {
    font-size: 15px;
    color: #4a4f55;
}

/* ================================
   GUARANTEES
================================ */

.home-guarantees {
    background: #f5f7fb;
    padding: 80px 0;
}

.home-guarantees h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 26px;
    text-align: center;
}

.home-guarantees ul {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.home-guarantees li {
    font-size: 16px;
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
}

.home-guarantees li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: 700;
}

/* ================================
   TESTIMONIALS
================================ */

.home-testimonials {
    padding: 90px 0;
    background: #ffffff;
}

.home-testimonials h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
}

.home-testimonials blockquote {
    max-width: 640px;
    margin: 0 auto 30px;
    padding: 26px 30px;
    background: #f5f7fb;
    border-radius: 10px;
    font-style: normal;
}

.home-testimonials blockquote p {
    font-size: 16px;
    margin-bottom: 10px;
}

.home-testimonials cite {
    font-size: 14px;
    color: #6b7280;
}

/* ================================
   PERFORMANCE & RESPONSIVE
================================ */

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

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 34px;
    }

    .home-guarantees h2,
    .home-testimonials h2 {
        font-size: 26px;
    }

    .order-form {
        padding: 20px;
    }
}


/* ==== EssayPro Mobile Header Enhancements ==== */

.site-header{background:#fff;transition:box-shadow .3s ease;z-index:1000}
.site-header.is-sticky{position:fixed;top:0;width:100%;box-shadow:0 8px 24px rgba(0,0,0,.08)}

.menu-toggle{display:none;background:none;border:none;cursor:pointer}
.menu-toggle span{display:block;width:26px;height:3px;background:#1a1a1a;margin:5px 0}

.menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:.3s;z-index:998}
.menu-overlay.is-active{opacity:1;visibility:visible}

@media(max-width:991px){
  .menu-toggle{display:block}
  .main-navigation{position:fixed;top:0;right:-320px;width:300px;height:100%;background:#fff;padding:30px 20px;transition:right .35s ease;z-index:999}
  .main-navigation.is-open{right:0}
  .mobile-menu-cta{margin-top:30px}
  .mobile-menu-cta a{display:block;background:#ff9800;padding:14px;border-radius:6px;font-weight:700;text-align:center;color:#1a1a1a;text-decoration:none}
}
body.menu-open{overflow:hidden}

img{max-width:100%;height:auto;} .hero-illustration{min-height:320px;}

.hero{display:grid;grid-template-columns:1fr 1fr;gap:3rem;padding:4rem}
.scroll-vertical{max-height:420px;overflow-y:auto}
.review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem}
.cta-primary{background:#2f7d32;color:#fff;padding:1rem 2rem;border-radius:8px}

.hero{display:flex;gap:3rem;padding:5rem}

/* ===== HOMEPAGE DESIGN SYSTEM ===== */

.cp-hero {
  background: #f5faf7;
  padding: 5rem 1.5rem;
}

.cp-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.cp-hero-left h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #111;
}

.cp-hero-sub {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  color: #444;
}

.cp-hero-points {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.cp-hero-points li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}

.cp-hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1f7a4d;
  font-weight: bold;
}

.cp-hero-cta {
  display: flex;
  gap: 1rem;
}

.cp-btn-primary {
  background: #1f7a4d;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.cp-btn-secondary {
  border: 2px solid #1f7a4d;
  color: #1f7a4d;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.cp-hero-right img {
  width: 100%;
  max-width: 460px;
  display: block;
  margin-left: auto;
}

/* Mobile */
@media (max-width: 900px) {
  .cp-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cp-hero-right img {
    margin: 2rem auto 0;
  }

  .cp-hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.mobile-menu{display:none;position:fixed;top:70px;left:0;width:100%;background:#fff;z-index:9999}
.mobile-menu.open{display:block}
body.menu-open{overflow:hidden}

.container{max-width:1200px;margin:0 auto;padding:40px 20px}
.archive-header{text-align:center;margin-bottom:40px}
.archive-title{font-size:2.2rem;margin-bottom:10px}
.archive-description{color:#666}
.archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px}
.archive-card{background:#fff;padding:25px;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.archive-card-title{font-size:1.2rem;margin-bottom:10px}
.archive-card-title a{text-decoration:none;color:#222}
.archive-excerpt{color:#555;margin-bottom:15px}
.read-more{font-weight:600;color:#0056b3;text-decoration:none}
.read-more:hover{text-decoration:underline}

/* === MOBILE FIRST CORE FIX === */
html{-webkit-text-size-adjust:100%}
body{margin:0;font-size:16px;line-height:1.6}
img,video{max-width:100%;height:auto}

.mobile-menu-toggle{display:none;position:fixed;top:18px;right:18px;width:32px;height:24px;background:none;border:0;z-index:10001}
.mobile-menu-toggle span{display:block;height:3px;margin:5px 0;background:#000}
.mobile-menu{display:none;position:fixed;top:0;left:0;width:100%;height:100vh;background:#fff;padding:80px 24px;z-index:10000;overflow-y:auto}
.mobile-menu.open{display:block}
.mobile-nav li{margin-bottom:18px}
.mobile-nav a{font-size:1.15rem;color:#000;text-decoration:none}

@media (max-width:900px){
.primary-menu,.main-navigation{display:none!important}
.mobile-menu-toggle{display:block}
}

a.cta-primary.brand {
    font-weight: 500;
}

/* ======================================================
   FINAL NAVIGATION FIX – DESKTOP + MOBILE (SAFE)
   ====================================================== */

/* ---------- DESKTOP NAV (DEFAULT) ---------- */
.desktop-nav,
.primary-menu,
.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Ensure desktop menu NEVER hides on large screens */
@media (min-width: 901px) {
    .desktop-nav,
    .primary-menu,
    .main-navigation {
        display: flex !important;
        position: static;
        visibility: visible;
        opacity: 1;
        height: auto;
    }

    /* Hide mobile elements on desktop */
    .mobile-menu,
    .mobile-menu-toggle,
    .menu-overlay {
        display: none !important;
    }

    body {
        overflow: auto !important;
    }
}

/* ---------- MOBILE NAV ---------- */
@media (max-width: 900px) {

    /* Hide desktop menu on mobile */
    .desktop-nav,
    .primary-menu,
    .main-navigation {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 18px;
        right: 18px;
        z-index: 10001;
        background: none;
        border: none;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: #000;
        margin: 5px 0;
    }

    /* Mobile menu panel */
    #mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: #ffffff;
        padding: 90px 24px 40px;
        z-index: 10000;
        overflow-y: auto;
    }

    #mobile-menu.open {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ---------- MOBILE MENU LINKS ---------- */
.mobile-nav li {
    margin-bottom: 18px;
}

.mobile-nav a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

/* CTA inside mobile menu */
.mobile-menu-cta a {
    display: block;
    margin-top: 24px;
    background: #ff9800;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
