/* ==========================================================
   Amin Finvest - Base styles
   ========================================================== */

:root {
  --color-blue: #0057ad;
  --color-dark: #1b1b1b;
  --color-navy: #0e1a23;
  --color-white: #ffffff;

  --font-body: Arial, Helvetica, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

/* Full width with side padding (no max width) */
.container {
  width: 100%;
  padding-left: 60px;
  padding-right: 60px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================
   Page banner (full-width image with title built in)
   ========================================================== */

.page-banner img {
  display: block;
  width: 100%;
}

/* Photo banner without built-in title: crop to banner shape */
.page-banner--photo img {
  aspect-ratio: 1920 / 550;
  height: auto;
  object-fit: cover;
}

/* ==========================================================
   About Us (home page)
   ========================================================== */

.about {
  padding: 60px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.about-media img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.about-content {
  padding-top: 24px;
  color: #2b2b2b;
  line-height: 1.6;
}

.about-content p {
  margin: 0 0 30px;
}

.about-content h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.about-content a {
  color: inherit;
  text-decoration: none;
}

.about-content a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

/* ==========================================================
   Our Team
   ========================================================== */

.team {
  padding-bottom: 60px;
  color: #2b2b2b;
}

.team-intro {
  padding-top: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eeeeee;
}

.team-intro h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
}

.team-intro p {
  margin: 0;
  line-height: 1.6;
}

/* Each team member: photo + name on the left, details on the right */
.member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: 40px 0;
  border-bottom: 1px solid #eeeeee;
}

.member-aside {
  text-align: center;
}

.member-photo {
  display: block;
  width: 300px;
  height: 300px;
  margin: 0 auto 30px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  border: 8px solid #e8e8e8;
}

.member-name {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.3;
}

.member-role {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.member-body {
  font-size: 16px;
  line-height: 1.6;
}

.member-body h3 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.member-body h4 {
  margin: 0 0 24px;
  font-size: 18px;
}

.member-body p {
  margin: 0 0 32px;
}

/* Bulleted lists (roles, ventures, education) */
.member-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.member-list > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 20px;
}

.member-list > li:last-child {
  margin-bottom: 0;
}

.member-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
}

.member-list > li > strong {
  display: block;
}

.member-meta {
  display: block;
  color: #666666;
  font-size: 16px;
}

.member-list ul {
  list-style: circle;
  margin: 8px 0 0;
  padding-left: 20px;
}

.member-list ul li {
  margin-bottom: 4px;
}

.member-list ul li::marker {
  color: var(--color-blue);
}

.member-body p + h3,
.member-list + h3 {
  margin-top: 8px;
}

.member-body > :last-child {
  margin-bottom: 0;
}

/* Investment Committee */
.committee {
  padding: 56px 0 20px;
}

.committee h2 {
  margin: 0 0 36px;
  font-size: 22px;
}

.committee ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
}

.committee li {
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================
   Grievance Redressal
   ========================================================== */

.grievance {
  padding-top: 60px;
  padding-bottom: 60px;
  color: #2b2b2b;
}

.grievance-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grievance-media img {
  display: block;
  width: 100%;
  aspect-ratio: 538 / 328;
  object-fit: cover;
  border-radius: 14px;
}

.grievance-text {
  padding-top: 0;
  border-bottom: 2px solid #2b2b2b;
}

.grievance-text h1 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.grievance-text p {
  margin: 0;
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
}

/* Form */
.grievance-form {
  margin-top: 56px;
  border: 1px solid #cdcdcd;
  padding: 20px;
  border-radius: 4px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: var(--color-white);
  border: 1px solid #cdcdcd;
  border-radius: 0;
}

.form-field input {
  height: 45px;
}

.form-field textarea {
  min-height: 175px;
  resize: vertical;
}

.form-field .required {
  color: #c62828;
}

/* Red border once a filled-in field is invalid (e.g. wrong mobile format) */
.form-field input:not(:placeholder-shown):invalid {
  border-color: #c62828;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  font-family: var(--font-body);
  font-size: 14px;
  color: #9a9a9a;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: -1px;
}

.btn-submit {
  padding: 8px 45px;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  background: #0065cb;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Message shown after the form is sent */
.form-status {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
}

.form-status--info {
  background: #eef3fa;
  color: #2b2b2b;
}

.form-status--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.form-status--error {
  background: #fdecea;
  color: #b71c1c;
}

.btn-submit:hover {
  background: #0057ad;
}

/* Officer details */
.grievance-officer {
  margin-top: 50px;
  padding: 0px;
  border-bottom: 2px solid #2b2b2b;
  font-size: 16px;
}

.grievance-officer h2 {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.officer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 38px;
  margin: 0 0 16px;
  padding-left: 0px;
}

.grievance-officer a {
  color: #0b5cad;
}

.grievance-officer p {
  margin-top: 0;
}

/* ==========================================================
   Contact Us
   ========================================================== */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  color: #2b2b2b;
}

.contact-form-wrap h2 {
  max-width: 680px;
  margin: 0 0 44px;
  font-size: 22px;
  line-height: 28px;
}

.contact-form {
  max-width: 550px;
  border: 1px solid #cdcdcd;
  padding: 20px;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 300px;
}

/* Right column sits level with the first form field */
.contact-details {
  padding-top: 6.2rem;
}

.contact-item {
  display: flex;
  gap: 28px;
  margin-bottom: 35px;
}

.contact-icon {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  color: #2f7bd1;
}

.contact-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 28px;
}

.contact-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a.contact-link {
  color: #0b5cad;
  text-decoration: underline;
}

.contact-item a:hover {
  color: var(--color-blue);
}

/* ==========================================================
   404 Page not found
   ========================================================== */

.not-found {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  color: #2b2b2b;
}

.not-found-code {
  margin: 0;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-blue);
}

.not-found h1 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 28px;
}

.not-found p {
  margin: 0 0 30px;
}

.not-found .btn-submit {
  display: inline-block;
  text-decoration: none;
}
