/*
Theme Name:         UoM Accounting & Finance
Theme URI:          https://www.uom.gr/acf
Author:             University of Macedonia — Dept. of Accounting & Finance
Author URI:         https://www.uom.gr/acf
Description:        A premium, Ivy League-quality WordPress theme for a postgraduate program in Accounting & Finance. Built with a disciplined Stanford-inspired visual identity (Cardinal Red #8C1515, Sandstone #D2C295), editorial typography (Source Serif 4 + Source Sans 3), and academically serious layouts for Program, Curriculum, Faculty, Research, Admissions, News and Contact pages. On activation, the theme auto-installs all pages, assigns their templates, builds the primary navigation menu and sets the homepage — delivering a complete, ready-to-edit graduate-school website out of the box.
Version:            1.0.0
Requires at least:  6.0
Tested up to:       6.5
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:        uom-acf
Tags:               education, two-columns, right-sidebar, custom-menu, custom-logo, editor-style, featured-images, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* =================================================================
   GRADUATE SCHOOL OF BUSINESS — DEPARTMENT OF ACCOUNTING & FINANCE
   Shared stylesheet (Stanford identity) — v1.0
   ================================================================= */

/* ====== DESIGN TOKENS ====== */
:root {
  /* Core Stanford palette */
  --cardinal-red:        #8C1515;
  --cardinal-red-dark:   #820000;
  --cardinal-red-light:  #B83A4B;

  --black:               #2E2D29;
  --cool-grey:           #53565A;
  --warm-grey:           #544948;
  --stone:               #7F7776;
  --fog:                 #DAD7CB;
  --sandstone:           #D2C295;
  --sandstone-light:     #F4F1E6;
  --white:               #FFFFFF;
  --off-white:           #FAFAF7;

  --palo-alto:           #175E54;
  --gold:                #B1040E;
  --poppy:               #E98300;

  --font-display:        'Source Serif 4', 'Cormorant Garamond', Georgia, serif;
  --font-serif:          'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans:           'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --max-width: 1320px;
  --content-width: 1180px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--cardinal-red); text-decoration: none; transition: color 0.25s var(--ease-out-quart); }
a:hover { color: var(--cardinal-red-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--cardinal-red); color: var(--white); }

/* ====== WP CORE ACCESSIBILITY ====== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999rem; top: 2.5rem; z-index: 999;
  background: var(--cardinal-red); color: var(--white); padding: 0.75rem 1.25rem;
  font-weight: 600; letter-spacing: 0.05em;
}
.skip-link:focus { left: 2rem; }

/* ====== UTILITY BAR ====== */
.utility-bar { background: var(--black); color: var(--white); font-size: 13px; letter-spacing: 0.03em; }
.utility-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0.55rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.utility-left { display: flex; gap: 1.5rem; }
.utility-left a { color: rgba(255,255,255,0.78); font-weight: 400; }
.utility-left a:hover { color: var(--white); }
.utility-right { display: flex; gap: 1.25rem; align-items: center; }
.utility-right a { color: rgba(255,255,255,0.78); font-size: 13px; }
.utility-right a:hover { color: var(--white); }
.utility-right .search-btn {
  background: none; color: rgba(255,255,255,0.78); font-size: 13px;
  display: flex; align-items: center; gap: 0.5rem;
}
.utility-right .search-btn:hover { color: var(--white); }

/* ====== MASTHEAD ====== */
.masthead {
  background: var(--white); border-bottom: 1px solid var(--fog);
  position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s ease;
}
.masthead.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.masthead-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 54px; height: 54px; background: var(--cardinal-red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 26px; font-style: italic;
  letter-spacing: -0.02em; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 3px; background: var(--sandstone);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-school {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--black); letter-spacing: -0.01em; white-space: nowrap;
}
.brand-dept {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  color: var(--cool-grey); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 2px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-link {
  color: var(--black); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.5rem 0; position: relative; display: inline-flex; align-items: center; gap: 0.35rem;
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--cardinal-red); transition: width 0.3s var(--ease-out-quart);
}
.nav-link:hover { color: var(--cardinal-red); }
.nav-link:hover::after, .nav-link.active::after, .nav-link.current-menu-item::after { width: 100%; }
.nav-link.active, .nav-link.current-menu-item { color: var(--cardinal-red); }
.nav-link i { font-size: 11px; opacity: 0.7; }
.nav-cta {
  background: var(--cardinal-red); color: var(--white); padding: 0.55rem 1rem;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.3s var(--ease-out-quart); display: inline-flex; align-items: center; gap: 0.45rem;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--cardinal-red-dark); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(140, 21, 21, 0.25);
}
.mobile-toggle { display: none; font-size: 22px; color: var(--black); }

/* WordPress-generated menu override (when wp_nav_menu is used) */
.nav ul { display: flex; align-items: center; gap: 2.25rem; margin: 0; padding: 0; }
.nav ul li { list-style: none; position: relative; }
.nav ul li a {
  color: var(--black); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.5rem 0; position: relative; display: inline-flex; align-items: center;
  transition: color 0.25s var(--ease-out-quart);
  white-space: nowrap;
}
.nav ul li a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--cardinal-red); transition: width 0.3s var(--ease-out-quart);
}
.nav ul li a:hover { color: var(--cardinal-red); }
.nav ul li.current-menu-item a,
.nav ul li.current_page_item a { color: var(--cardinal-red); }
.nav ul li a:hover::after,
.nav ul li.current-menu-item a::after,
.nav ul li.current_page_item a::after { width: 100%; }

/* Shrink on scroll: default above = home-page look; .scrolled compresses. */
.masthead,
.masthead-inner,
.brand,
.brand-mark,
.brand-mark::after,
.brand-school,
.brand-dept,
.nav,
.nav ul,
.nav-link,
.nav ul li a,
.nav-cta {
  transition:
    padding 0.28s var(--ease-out-quart),
    gap 0.28s var(--ease-out-quart),
    width 0.28s var(--ease-out-quart),
    height 0.28s var(--ease-out-quart),
    font-size 0.28s var(--ease-out-quart),
    box-shadow 0.3s ease,
    color 0.25s var(--ease-out-quart);
}
.masthead.scrolled .masthead-inner {
  padding: 0.68rem 2rem;
  gap: 1.35rem;
}
.masthead.scrolled .brand { gap: 0.8rem; }
.masthead.scrolled .brand-mark {
  width: 42px; height: 42px; font-size: 21px;
}
.masthead.scrolled .brand-mark::after { bottom: -3px; }
.masthead.scrolled .brand-school { font-size: 17px; }
.masthead.scrolled .brand-dept { font-size: 10.5px; }
.masthead.scrolled .nav,
.masthead.scrolled .nav ul { gap: 1.35rem; }
.masthead.scrolled .nav-link,
.masthead.scrolled .nav ul li a { font-size: 14px; }
.masthead.scrolled .nav-cta {
  padding: 0.45rem 0.85rem; font-size: 12px;
}

/* ====== ANNOUNCEMENT ====== */
.announce { background: var(--sandstone-light); padding: 1rem 2rem; border-bottom: 1px solid var(--fog); }
.announce-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; font-size: 14.5px;
}
.announce-tag {
  background: var(--cardinal-red); color: var(--white); padding: 0.25rem 0.75rem;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
}
.announce-text { color: var(--black); font-weight: 500; }
.announce-link {
  color: var(--cardinal-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.05rem 2rem; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s var(--ease-out-quart); border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--cardinal-red); color: var(--white); }
.btn-primary:hover {
  background: var(--cardinal-red-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(140,21,21,0.28);
}
.btn-light { background: var(--white); color: var(--cardinal-red); }
.btn-light:hover {
  background: var(--sandstone); color: var(--cardinal-red-dark);
  transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.btn-ghost { background: transparent; color: var(--cardinal-red); border-color: var(--cardinal-red); }
.btn-ghost:hover { background: var(--cardinal-red); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { border-color: var(--sandstone); color: var(--sandstone); }
.btn i { font-size: 12px; transition: transform 0.3s var(--ease-out-quart); }
.btn:hover i { transform: translateX(4px); }

/* ====== SECTION SHARED ====== */
section { padding: var(--s-8) 2rem; }
.wrap { max-width: var(--content-width); margin: 0 auto; }
.wrap-wide { max-width: var(--max-width); margin: 0 auto; }
.section-eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cardinal-red); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.section-eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--cardinal-red); }
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1; font-weight: 400; letter-spacing: -0.02em;
  color: var(--black); margin-bottom: 1.25rem; max-width: 800px;
}
.section-title em { font-style: italic; color: var(--cardinal-red); }
.section-lede {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55;
  color: var(--cool-grey); max-width: 720px; font-weight: 300;
}

/* ====== PAGE HERO (interior pages) ====== */
.page-hero {
  background: linear-gradient(115deg, #2E1010 0%, #5B0E0E 40%, #8C1515 100%);
  color: var(--white); position: relative; overflow: hidden;
  padding: 7rem 2rem 6rem; min-height: 52vh; display: flex; align-items: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><circle cx='60' cy='60' r='1' fill='%23ffffff' opacity='0.04'/></svg>");
  opacity: 0.6;
}
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(210,194,149,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative; z-index: 2; max-width: var(--max-width);
  margin: 0 auto; width: 100%;
}
.crumbs {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 1.5rem;
}
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: var(--sandstone); }
.crumbs .sep { margin: 0 0.75rem; color: var(--sandstone); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 1.5rem; max-width: 900px;
}
.page-hero h1 em { font-style: italic; color: var(--sandstone); }
.page-hero .lede {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.55;
  color: rgba(255,255,255,0.85); max-width: 680px; font-weight: 300;
}
.hero-eyebrow-light {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sandstone); margin-bottom: 1.5rem;
}
.hero-eyebrow-light::before { content: ""; width: 42px; height: 1px; background: var(--sandstone); }

/* ====== FOOTER ====== */
footer.site-footer, body > footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 5rem 2rem 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1fr 1fr; gap: 2.4rem;
  padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-mark { background: var(--cardinal-red); }
.footer-brand .brand-school { color: var(--white); }
.footer-brand .brand-dept { color: rgba(255,255,255,0.6); }
.footer-about {
  margin-top: 1.75rem; font-size: 0.92rem; line-height: 1.65;
  color: rgba(255,255,255,0.6); max-width: 340px;
}
.social-row { display: flex; gap: 0.75rem; margin-top: 1.75rem; }
.social {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}
.social:hover { background: var(--cardinal-red); border-color: var(--cardinal-red); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
  margin-bottom: 1.5rem; position: relative; padding-bottom: 0.9rem;
}
.footer-col h5::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--cardinal-red);
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--sandstone); }
.contact-item {
  display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 14px;
  color: rgba(255,255,255,0.7); align-items: flex-start;
}
.contact-item i { color: var(--cardinal-red-light); font-size: 14px; margin-top: 0.2rem; width: 16px; }
.footer-bottom {
  padding-top: 2.5rem; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 1.75rem; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: var(--white); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  section { padding: 4.5rem 1.25rem; }
  .page-hero { padding: 4.5rem 1.25rem 4rem; }
  .utility-left { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
