/*
Theme Name:  Ammaya Construction Blog
Theme URI:   https://ammaya.in
Author:      Ammaya Interiors & Construction
Author URI:  https://ammaya.in
Description: A professional blog theme for Ammaya Construction & Interiors. Gold on black brand identity with clean, elegant content layout. Ideal for construction, interior design, and home-building blogs.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ammaya
Tags:        blog, construction, interiors, gold, black, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ─── CSS VARIABLES ──────────────────────────────── */
:root {
  --gold:        #C9A228;
  --gold-light:  #E2B84A;
  --gold-pale:   #FFF8E8;
  --black:       #111111;
  --dark:        #1A1A1A;
  --gray-dark:   #333333;
  --gray-mid:    #3a3a3a;
  --gray-light:  #999999;
  --border:      #E8E2D6;
  --white:       #FFFFFF;
  --cream:       #FDFBF6;
  /*--font-display:'Playfair Display', Georgia, serif;*/
  /*--font-body:   'DM Sans', sans-serif;*/
  --radius:      8px;
  --shadow:      0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
}

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  /*font-family: var(--font-body);*/
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--cream);
  color: var(--gray-dark);
  line-height: 1.7;
  font-size: 16px;
}

a { text-decoration: none; color: var(--gold); transition: color 0.2s; }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p { margin-bottom: 1em; }

/* ─── LAYOUT CONTAINER ───────────────────────────── */
.ammaya-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ammaya-main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* ─── HEADER ─────────────────────────────────────── */
#masthead {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.custom-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-title {
  font-family: var(--font-display);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--gold) !important;
  letter-spacing: 2px;
  margin: 0;
}

.site-title a {
  color: var(--gold) !important;
  text-decoration: none;
}

.site-description {
  font-size: 9px;
  color: #888;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0;
}

/* Primary Navigation */
#primary-menu-container { display: flex; align-items: center; }

#primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#primary-menu li { position: relative; }

#primary-menu > li > a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-decoration: none;
  padding: 10px 10px;
  display: block;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current_page_item > a {
  color: var(--gold);
}

/* Dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid #2a2a2a;
  border-top: 2px solid var(--gold);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 999;
}

#primary-menu li:hover > .sub-menu { display: block; }

#primary-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

#primary-menu .sub-menu li a:hover {
  color: var(--gold);
  background: rgba(201,162,40,0.06);
}

/* Header CTA Buttons */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-outline {
  padding: 7px 16px;
  border: 1px solid #555;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold) !important; }

.btn-gold {
  padding: 8px 18px;
  background: var(--gold);
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  color: var(--black) !important;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--black) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
}

/* ─── BLOG HERO ───────────────────────────────────── */
.blog-hero {
  background: var(--black);
  color: var(--white);
  padding: 64px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,162,40,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,162,40,0.4);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.blog-hero h1 em { font-style: normal; color: var(--gold); }

.blog-hero p {
  font-size: 16px;
  color: #aaa;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── CATEGORY BAR ───────────────────────────────── */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 68px;
  z-index: 90;
}

.category-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.category-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid var(--border);
  color: #000;
  background: transparent;
  transition: all 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black) !important;
  /*font-weight: 600;*/
}

/* ─── SECTION LABEL ──────────────────────────────── */
.section-label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── FEATURED POST ──────────────────────────────── */
.featured-post {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.featured-img {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s, opacity 0.3s;
  display: block;
}

.featured-post:hover .featured-img img {
  transform: scale(1.04);
  opacity: 1;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.featured-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─── POST META ──────────────────────────────────── */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 14px;
  font-weight: 500;
}

.post-meta .cat-tag {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.post-meta .cat-tag:hover { color: var(--gold-light); }
.post-meta .dot { color: var(--border); }

.featured-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 14px;
}

.featured-body h2 a { color: var(--black); text-decoration: none; }
.featured-body h2 a:hover { color: var(--gold); }

.featured-body .excerpt {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
  transition: gap 0.2s;
  text-decoration: none;
}

.read-link:hover { gap: 12px; color: var(--gold-light) !important; }

.read-link-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ─── POST GRID ──────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}

.post-card:hover .card-img img { transform: scale(1.05); }

.card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 10px;
}

.card-body h3 a { color: var(--black); text-decoration: none; }
.card-body h3 a:hover { color: var(--gold); }

.card-body .excerpt {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 16px;
}

/* ─── PAGINATION ─────────────────────────────────── */
.ammaya-pagination {
  text-align: center;
  padding: 32px 0 0;
  grid-column: 1 / -1;
}

.ammaya-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ammaya-pagination .page-numbers a,
.ammaya-pagination .page-numbers span {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-mid);
  text-decoration: none;
  transition: all 0.2s;
}

.ammaya-pagination .page-numbers a:hover,
.ammaya-pagination .page-numbers span.current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black) !important;
  font-weight: 600;
}

/* ─── SINGLE POST ────────────────────────────────── */
.single-post-hero {
  background: var(--black);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.single-post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,162,40,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.single-post-hero .post-meta { justify-content: center; margin-bottom: 20px; }
.single-post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.25;
}

.single-post-hero .author-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.single-featured-img {
  max-width: 900px;
  margin: -30px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.single-featured-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.single-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

/* Post Content Typography */
.entry-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-dark);
}

.entry-content h2 {
  font-size: 26px;
  margin: 2em 0 0.6em;
  color: var(--black);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-pale);
}

.entry-content h3 {
  font-size: 20px;
  margin: 1.6em 0 0.5em;
  color: var(--black);
}

.entry-content h4 {
  font-size: 17px;
  margin: 1.4em 0 0.4em;
  color: var(--gray-dark);
}

.entry-content p { margin-bottom: 1.4em; font-size:14px !important;}
.wp-block-table{font-size:14px !important;}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.6em;
}

.entry-content li { margin-bottom: 0.4em; }

.entry-content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: 20px 28px;
  margin: 2em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gray-dark);
}

.entry-content blockquote cite {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--gray-light);
  margin-top: 8px;
  font-family: var(--font-body);
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow);
}

.entry-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,162,40,0.4);
}

.entry-content a:hover { text-decoration-color: var(--gold); }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 14px;
}

.entry-content table th {
  background: var(--black);
  color: var(--gold);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.entry-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-dark);
}

.entry-content table tr:nth-child(even) td { background: var(--cream); }

/* Post Tags */
.post-tags {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.post-tags .tags-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

.post-tags a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-mid);
  text-decoration: none;
  transition: all 0.2s;
}

.post-tags a:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201,162,40,0.06);
}

/* Author Box */
.author-box {
  background: var(--gold-pale);
  border: 1px solid rgba(201,162,40,0.25);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.author-box-info .author-role {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.author-box-info p { font-size: 13px; color: var(--gray-mid); margin: 0; }

/* Post Navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.post-nav-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.post-nav-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,162,40,0.1);
}

.post-nav-item .nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 6px;
  display: block;
}

.post-nav-item .nav-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

/* Comments */
.comments-area {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--black);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-pale);
}

.comment-list { list-style: none; padding: 0; }

.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-meta .comment-author { font-weight: 600; color: var(--black); font-size: 14px; }
.comment-meta .comment-date { font-size: 12px; color: var(--gray-light); }
.comment-content p { font-size: 14px; color: var(--gray-mid); margin: 0; }

.comment-reply-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.comment-respond { margin-top: 28px; }
.comment-reply-title { font-family: var(--font-display); font-size: 20px; margin-bottom: 20px; }

.comment-form label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-dark); margin-bottom: 6px; letter-spacing: 0.5px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-dark);
  background: var(--cream);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); }
.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
  padding: 11px 28px;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .form-submit input:hover { background: var(--gold-light); }

/* ─── SIDEBAR ────────────────────────────────────── */
#secondary { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.widget-title {
  background: var(--black);
  padding: 14px 20px;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin: 0 !important;
  font-family: var(--font-body) !important;
}

.widget-body-inner { padding: 20px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--gray-mid); text-decoration: none; transition: color 0.2s; }
.widget ul li a:hover { color: var(--gold); }

/* Widget: Recent Posts */
.widget_recent_entries ul li a { font-weight: 500; color: var(--black); }
.widget_recent_entries .post-date { display: block; font-size: 11px; color: var(--gray-light); margin-top: 3px; }

/* Widget: Categories */
.widget_categories ul li { display: flex; justify-content: space-between; align-items: center; }
.widget_categories ul li .count { background: var(--gold-pale); color: var(--gold); padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }

/* Widget: Tag Cloud */
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget_tag_cloud .tagcloud a {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px !important;
  font-weight: 500;
  color: var(--gray-mid);
  text-decoration: none;
  transition: all 0.2s;
}

.widget_tag_cloud .tagcloud a:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(201,162,40,0.06);
}

/* Widget: Search */
.widget_search .search-form { display: flex; gap: 0; }
.widget_search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  background: var(--cream);
}
.widget_search .search-field:focus { border-color: var(--gold); }
.widget_search .search-submit {
  padding: 10px 16px;
  background: var(--gold);
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--black);
  transition: background 0.2s;
}
.widget_search .search-submit:hover { background: var(--gold-light); }

/* CTA Widget (Custom) */
.ammaya-cta-widget {
  background: var(--gold-pale);
  border: 1px solid rgba(201,162,40,0.3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.ammaya-cta-widget .cta-icon { font-size: 32px; margin-bottom: 12px; }

.ammaya-cta-widget h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.ammaya-cta-widget p {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 20px;
  line-height: 1.6;
}

.ammaya-cta-widget .btn-gold {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-align: center;
}

.wa-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid #25D366;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #25D366;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
  text-align: center;
  text-decoration: none;
}

.wa-btn:hover { background: #25D366; color: white !important; }

/* ─── PAGE TEMPLATE ──────────────────────────────── */
.page-hero {
  background: var(--black);
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  margin: 0;
}

.page-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ─── FOOTER ─────────────────────────────────────── */
#colophon {
  background: var(--black);
  color: #aaa;
  border-top: 2px solid var(--gold);
  margin-top: 80px;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #c9c9c9 !important;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-tagline {
  font-size: 14px;
  color: #c9c9c9;
  margin: 8px 0 20px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .logo-text span:first-child {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
}

.footer-logo .logo-text span:last-child {
  font-size: 9px;
  color: #555;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
}

.social-links { display: flex; gap: 10px; }

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #666;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.social-btn:hover { border-color: var(--gold); color: var(--gold) !important; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
  font-family: var(--font-body);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li { margin-bottom: 10px; font-size: 14px; }
.footer-menu li a { color: #c9c9c9; text-decoration: none; transition: color 0.2s; }
.footer-menu li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #c9c9c9;
}

.footer-contact-icon { color: var(--gold); font-size: 14px; margin-top: 1px; flex-shrink: 0; }

.footer-bottom-bar {
  border-top: 1px solid #1e1e1e;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-bar p { font-size: 12px; color: #c9c9c9; margin: 0; }
.footer-bottom-bar p a { color: var(--gold); text-decoration: none; }
.footer-bottom-bar p span { color: var(--gold); }

.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 12px; color: #c9c9c9; text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--gold); }

/* ─── 404 PAGE ───────────────────────────────────── */
.not-found-wrap {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.3;
}

.not-found-wrap h2 { font-size: 32px; margin-bottom: 12px; }
.not-found-wrap p { color: var(--gray-mid); margin-bottom: 28px; }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  #primary-menu-container { display: none; }
  #primary-menu-container.toggled { display: block; position: absolute; top: 170px; left: 0; right: 0; background: var(--dark); border-bottom: 2px solid var(--gold); padding: 12px 0; z-index: 99; }
  #primary-menu-container.toggled #primary-menu { flex-direction: column; gap: 0; }
  #primary-menu-container.toggled #primary-menu > li > a { padding: 12px 24px; border-bottom: 1px solid #222; }
  .menu-toggle { display: block; }
  header { position: relative; }
  .ammaya-main-wrap { grid-template-columns: 1fr; gap: 40px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 220px; }
  .single-content-wrap { grid-template-columns: 1fr; }
  .entry-content { padding: 28px 24px; }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .header-cta .btn-outline { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-bar { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .page-content { padding: 24px 20px; }
  .comments-area { padding: 24px 20px; }
}
