/*
Theme Name: My UC Mentor
Theme URI: https://myucmentor.com
Author: My UC Mentor
Description: Custom theme for My UC Mentor — expert UC application consulting. Converted from the original React/Vite site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myucmentor
*/

:root {
  /* Colors */
  --color-primary: #1a237e; /* Deep Royal Blue */
  --color-primary-light: #534bae;
  --color-secondary: #ffc107; /* Amber/Gold */
  --color-secondary-dark: #c79100;

  --color-text-main: #212121;
  --color-text-light: #757575;
  --color-background: #fdfdfd;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;

  /* Typography */
  --font-heading: 'Libre Baskerville', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

/* Full-height layout: sticky footer */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }

/* Navbar */
.navbar {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Keep the sticky navbar below the WP admin bar when logged in */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Support wp_nav_menu markup: highlight the current page item */
.nav-links .current-menu-item > .nav-link,
.nav-links .current_page_item > .nav-link {
    color: var(--color-primary);
}

.nav-links .current-menu-item > .nav-link::after,
.nav-links .current_page_item > .nav-link::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

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

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Home Page */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-photo {
    margin: 0 auto 3rem;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.home-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-lg);
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

/* About Page */
.about-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    flex-direction: row-reverse;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.about-image {
    flex: 1 1 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1 1 400px;
}

/* Contact Page */
.contact-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-card .contact-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: underline;
}

.contact-note {
    margin-top: 2rem;
    color: var(--color-text-light);
}

.contact-form {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

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

/* Journey Page */
.journey-page {
    padding-bottom: var(--spacing-xl);
}

.journey-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.journey-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

.intro-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    background: white;
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Central Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Icons on the timeline */
.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    background-color: var(--color-primary);
    border: 4px solid white;
    top: 20px;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: white;
}

.timeline-item.right .timeline-icon {
    left: -25px;
}

.final-step {
    background-color: var(--color-secondary);
}

/* Content Box */
.timeline-content {
    padding: var(--spacing-lg);
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.year-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.checklist {
    text-align: left;
    margin-top: 1rem;
}

.checklist li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.checklist li strong {
    color: var(--color-text-main);
}

.checklist li::before {
    content: "•";
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.25rem;
    line-height: 1;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 1rem;
    background-color: var(--color-background);
}

.cta-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* Journey responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 6px;
        right: auto;
    }
}

/* Generic page content (for pages edited in the WP editor) */
.entry-content p {
    margin-bottom: var(--spacing-md);
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}
